Safari is displaying Times New Roman for all fonts in Safari 5.0.x

不羁岁月 提交于 2019-12-11 15:35:19

问题


My site is displaying all fonts in Times New Roman even though that declaration is nowhere in my CSS.

This only happens in Safari 5.0.5 on OS X only. When inspecting a text element, it says "font-family: Times New Roman".

The fonts are displayed correctly in 5.1

What could be the problem, and how can this be fixed?


回答1:


If you have no fonts declared in your CSS, The browser may try to apply its default font.

To avoid that, you may do something like:

html{
 font-family:Arial, Helvetica, Verdana;
}

However, If you do have font-family declared for your element, it may be some widget or external CSS that overwrites your CSS, Try to get rid of these for a quicker debugging.



来源:https://stackoverflow.com/questions/7391159/safari-is-displaying-times-new-roman-for-all-fonts-in-safari-5-0-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!