我正在尝试让 IE9 显示自定义字体。应该很容易......研究了大量的谷歌网站,甚至是stackoverflow问题。这就是我所拥有的:
@font-face {
font-family: "BrushstrokePlain";
src: url("../../fonts/BRUSHSTP-webfont.eot");
src: url("../../fonts/BRUSHSTP-webfont.eot?#iefix") format("embedded-opentype"),
url("../../fonts/BRUSHSTP-webfont.woff") format("woff"),
url("../../fonts/BRUSHSTP-webfont.ttf") format("truetype"),
url("../../fonts/BRUSHSTP-webfont.svg#BrushstrokePlain") format("svg");
font-weight: normal;
font-style: normal;
}
但IE9顽固地拒绝合作。直播网站是:http ://family.steps.org.au
它适用于所有浏览器和 IE 7 & 8,除了 IE9 :(
编辑
这是我添加到我的 nginx 配置中以使其正常工作的内容:
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}