【问题标题】:IE9 fonts not renderingIE9 字体不呈现
【发布时间】:2012-09-03 02:51:27
【问题描述】:

我检查了搜索,找到了很多资源,但是没有一个有用。

Chrome、FF、IE7+8 都可以很好地加载字体“Gotham-Book”;但是在 IE 9 中它只显示默认浏览器。

在 css 中这是我的@font-face

@font-face {
font-family: "Gotham-Book";
src: url('../Fonts/Gotham-Book.eot?') format('embedded-opentype'), 
     url('../Fonts/Gotham-Book.otf') format("opentype"),
     url('../Fonts/Gotham-Book.ttf')  format('truetype');
}

我得到了?在来自here 的网址中。

我将此添加到我的 httpd.conf 中(如堆栈上所建议的那样)

<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "http://localhost"
</IfModule>
</FilesMatch>

无济于事。有人对 IE 9 有什么建议吗?

谢谢。

【问题讨论】:

    标签: html css fonts internet-explorer-9


    【解决方案1】:

    IE9 使用的是 woff 格式的字体。看起来你没有提供它。

    【讨论】:

    猜你喜欢
    • 2012-09-21
    • 2012-10-03
    • 2015-09-22
    • 1970-01-01
    • 2012-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-22
    相关资源
    最近更新 更多