Firefox 3.6 for Mac 字体问题(选择错误的字体)
我在 Mac 上使用 Firefox 3.6 时遇到以下问题。 Windows 和旧版本的 FF 可以完美运行。
正文是这样定义的:
body {color:#000;font:normal 12px/16px "Cambria", Times, Times New Roman, Georgia, serif;background:#fff}
但是我的 h1、h2 和其他一些标签(有时列表项的字体是正确的,有时不是)采用 Verdana(错误应该是 Camrbia)字体...我不知道为什么...标准 FF 字体是 Times...我的其他文本采用正确的 Cambria 字体。
即使当我删除样式表时,相同的标签也有错误的字体,它们应该是 Times,但它们是 Verdana ->很奇怪不是吗?
PS:很抱歉,我无法发布整个样式表......
I have the following problem with Firefox 3.6 on Mac. Windows and older versions of FF work perfect.
The body is defined like this:
body {color:#000;font:normal 12px/16px "Cambria", Times, Times New Roman, Georgia, serif;background:#fff}
But my h1, h2 and some other tags (sometimes a list item is in the right font, sometimes it isn't) are in Verdana (wrong should be Camrbia) font... I don't know why... The standard FF font is Times... My other texts are in the right Cambria font.
Even when I remove the stylesheet the same tags have the wrong font, they should be Times but they are Verdana -> Very strange no?
PS: I'm sorry but I can't post the whole stylesheet...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还必须在 h1、h2 等标签上设置字体系列。另外,如果字体名称包含更多单词,您还必须在引号中写入字体系列:
我建议您为 firefox 安装 Firebug 插件,并查看哪些样式应用于您的标签。还要检查标头中是否没有加载其他样式表。
You have to set font families on h1, h2, etc. tags too. Also you have to write font-families in quotes if the font name consists of more words:
I suggest you to install Firebug plugin for firefox and see which styles are being applied to your tags. Also check if there is not another stylesheet that is being loaded in the header.