Web字体仅在Chrome中出现故障

时间:2013-09-15 03:19:00

标签: css google-chrome cross-browser webfonts

我在我的服务器上安装了一个Web字体,当我在Firefox和IE中查看它时,它非常好。现在,当我在谷歌浏览器中打开同一页面时,字体不是因为我把它放在CSS中!网站上还有其他字体显示正常。只是一种字体不起作用。这都是使用本地和服务器副本进行测试的,但都没有用。

关于我们 Din 内容假设 Franklin Gothic


火狐:

Page section in Firefox browser


Internet Explorer:

Page Section in IE browser


Chrome: 有问题的人

Page section in Google Chrome browser.


我的CSS:

@font-face {
    font-family: 'Franklin Gothic';
    src: url('Franklin Gothic.eot');
    src: url('Franklin Gothic.eot') format('eot'),
url('Franklin Gothic.woff') format('woff'),
url('Franklin Gothic.ttf') format('truetype'),
url('Franklin Gothic.svg') format('svg');
    font-weight: normal;
    font-style: normal;

}

非常感谢任何帮助, 谢谢, 〜BN

1 个答案:

答案 0 :(得分:0)

尝试在“ WOFF声明”之前加上“ SVG声明”:

@font-face {
    font-family: 'Franklin Gothic';
    src: url('Franklin Gothic.eot');
    src: url('Franklin Gothic.eot') format('eot'),
url('Franklin Gothic.svg') format('svg');
url('Franklin Gothic.woff') format('woff'),
url('Franklin Gothic.ttf') format('truetype'),
    font-weight: normal;
    font-style: normal;

}

希望它有所帮助!