【问题标题】:FireFox not rendering font correctlyFireFox 无法正确渲染字体
【发布时间】:2011-10-03 04:52:56
【问题描述】:

谁能告诉我为什么 FireFox 不呈现 Lucida Sans Unicode 字体类型?根据 w3schools,它是默认的网络安全字体。 Chrome 和 IE 都可以正常渲染。

html, body {
    height: 100%;
    font-size: 100%;
    min-width: 950px;
    color: #000;
    font: normal 12px "Lucida Sans Unicode" Geneva, Tahoma;
}

【问题讨论】:

  • 根据 w3schools - 除非您想解决问题,否则不要在此处引用 w3schools。 w3fools.com
  • @JaredFarrish 有什么好的网站可以及时了解所有标记和 css 更改?
  • 你总是最好去源头,比如w3.org/TRsitepoint.com 也是一个不错的参考,quirksmode.org 也是一个不错的参考。 caniuse.com 适用于 HTML5。

标签: html css


【解决方案1】:

Lucida 部分后面可能需要一个逗号:

html, body {
    height: 100%;
    font-size: 100%;
    min-width: 950px;
    color: #000;
    font: normal 12px "Lucida Sans Unicode", Geneva, Tahoma;
}

http://jsfiddle.net/GVCy2/

【讨论】:

  • @roXon - 好的,谢谢。实际上,我创建了一个 jsfiddle 并使用 Firebug 来确定该类没有被应用,这让我想确保 css 是有效的,之后我发现逗号丢失了。
猜你喜欢
  • 2012-08-17
  • 1970-01-01
  • 2015-10-06
  • 2017-01-13
  • 2017-05-26
  • 1970-01-01
  • 1970-01-01
  • 2016-12-29
  • 1970-01-01
相关资源
最近更新 更多