相关疑难解决方法(0)

android 4.0.x上的font-face不起作用

我正在使用JQM构建移动应用程序,我需要使用font-face声明自己的字体.

我在我的index.html中包含了字体css文件fonts.css作为第一个加载的css文件,并声明font-faces如下:

@font-face {
    font-family:"MyFont";
    font-weight:normal;
    font-style:normal;
    src:url("fonts/MyFont.woff");
    src:url("fonts/MyFont.eot?") format("eot"),
        url("fonts/MyFont.woff") format("woff"),
        url("fonts/MyFont.ttf") format("truetype"),
        url("fonts/MyFont.svg#MyFont") format("svg");
}
Run Code Online (Sandbox Code Playgroud)

我的两个测试设备是Google Nexus 7安卓4.2.1Motorola Razr安卓4.0.4.

在谷歌Nexus上,它适用于移动Chrome和PhoneGap.但在摩托罗拉Razr上,它仅适用于移动Chrome.Android浏览器和Phonegap都没有使用MyFont.

是否有任何解决方法可以让我的Font在Android 4.0.x上运行?

css android font-face

11
推荐指数
1
解决办法
6329
查看次数

标签 统计

android ×1

css ×1

font-face ×1