我有一个简单的例子,在那里为某种原因定义@字体面将只能用于铬,未能在火狐,Safari工作和IE:@ font-face失败的原因是什么?
https://jsfiddle.net/d8e6xz7e/1/
HTML :
<body>
<div class="original-font">
This is the original font
</div>
<div class="bold-font">
This should be bold! But it is not in IE, Safari and FireFox
</div>
</body>
CSS:
@font-face {
font-family: 'Lucida Bold Italic';
font-style: italic;
font-weight: bold;
src: local('Lucida Sans Unicode'), local('Times New Roman');
}
.original-font {
font-family: 'Lucida Sans Unicode';
}
.bold-font {
font-family: 'Lucida Bold Italic';
}
根据规范(https://developer.mozilla.org/en/docs/Web/CSS/@font-face)它应该支持现代浏览器。这就是为什么,我怀疑css定义中缺少一些东西。
将不胜感激任何意见!
也许你也会有与此相关的问题http://stackoverflow.com/questions/41147727/ho思路瓦特到附加字体重属性-内部-A-字体定义换的-回退的字体 – Anelook