【发布时间】: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