【发布时间】:2012-03-28 02:10:54
【问题描述】:
Internet Explorer 9、Firefox、 Opera、Chrome 和 Safari。
但是,Internet Explorer 9 仅支持 .eot 类型的字体,而 Firefox、Chrome、Safari 和 Opera 支持 .ttf 和 .otf 类型的字体。
注意:Internet Explorer 8 及更早版本,不支持 @font-face 规则。
此文本来自here。所以为了让@font-face 能在 IE9 上工作,我应该只指定 EOT 字体文件:
@font-face
{
font-family: myFirstFont;
src: url('Sansation_Light.ttf'),
url('Sansation_Light.eot'); /* IE9 */
}
特别是我正在使用 Myriad Pro,而且我有 OTF 字体。如何将它们转换为 EOT 类型?
关于 IE7 和 IE8 应该使用什么技巧/hack 来获得所需的结果?
【问题讨论】:
-
忘记 w3schools 告诉你的一切。机会很高,这完全是错误的。在其他评论中查看我的链接。
标签: html css internet-explorer font-face