【发布时间】:2015-06-02 05:52:50
【问题描述】:
我正在使用自定义字体样式在 PhoneGap 中做一个应用程序。字体样式在浏览器中接受,但在安卓手机中不接受。
<style>
@font-face {
font-family: 'CooperStd';
src: url('fonts/cooperblackstd.eot');
src: url('fonts/cooperblackstd.eot?#iefix') format('embedded-opentype'),
url('fonts/cooperblackstd.woff') format('woff'),
url('fonts/cooperblackstd.ttf') format('truetype'),
url('fonts/cooperblackstd.svg#CooperBlackStd') format('svg');
font-weight: 900;
font-style: normal;
}
body{font-family:'CooperStd' , arial ; }
</style>
我检查了字体路径,在浏览器中检查控制台也是正确的。我没有发现任何错误。
提前致谢
【问题讨论】:
-
我试过你提到的链接,但它不起作用@Mark Veenstra
标签: android css cordova font-face phonegap-build