以下 @font-face
声明在每个主要浏览器(包括 Chrome for Android)
中都可以正常工作,除了 Android 浏览器
和Android 版 Firefox
(来自 http://oftn.org/css/global.css):
@font-face {
font-family: "OFTN Aller";
src: url("../fonts/OFTN-Aller-Bold.woff") format("woff"),
url("../fonts/OFTN-Aller-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "OFTN Aller";
src: url("../fonts/OFTN-Aller.woff") format("woff"),
url("../fonts/OFTN-Aller.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
我做错了什么?
截图
Android 4.0.3 浏览器:
Windows 7 上的 Chrome 19:
Windows 7 上的 Firefox 13:
最佳答案
.woff 在安卓不支持
检查 font support
编辑:我认为页面加载正确,因为它在桌面上看起来一样。
Our Name
ΩF:∅ means "ohm-farad to none", and we usually pronounce it as "often".
关于android - @font-face 在 Android 浏览器中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10945159/