font-face在Firefox上不显示 [英] font-face not showing up on Firefox

查看:84
本文介绍了font-face在Firefox上不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的@ font-face在我试过的每一个其他浏览器,但在Windows上的Firefox,它加载字体资源,但显示回退。这是有问题的代码:

My @font-face works in every other browser I've tried, but on Firefox on Windows, it loads the font resources, but displays the fallback. Here is the code in question:

@font-face {
    font-family: 'VanillaRegular';
    src: url('http://dl.dropbox.com/u/19510731/ttfonts/Vanilla-webfont.eot');
    src: url('http://dl.dropbox.com/u/19510731/ttfonts/Vanilla-webfont.eot?#iefix') format('embedded-opentype'),
         url('http://dl.dropbox.com/u/19510731/ttfonts/Vanilla-webfont.woff'),
         url('http://dl.dropbox.com/u/19510731/ttfonts/Vanilla-webfont.ttf'),
         url('http://dl.dropbox.com/u/19510731/ttfonts/Vanilla-webfont.svg#VanillaRegular');
    font-weight: normal;
    font-style: normal;
}

然后我就像这样嵌入:

.post h3 {
border-bottom:1px solid #c7e7fa;
color:#51514E;
font-size:22px;
font-weight:bold;
line-height:1.4em;
margin:0.25em 0 8px;
padding:0 0 4px;
font-family: "VanillaRegular", Arial, sans-serif;
}

我特别需要为Firefox做些什么,

Is there something that I specifically need to do for Firefox, or is just my code?

编辑:应使用Firefox 8添加,最终产品在Blogger上。

Should add, using Firefox 8, and the final product is on Blogger.

推荐答案

把这些字体放在你自己的服务器上,他们会工作。 Firefox无法外包字体。

Put those fonts on your own server and they will work. Firefox cannot outsource fonts.

这篇关于font-face在Firefox上不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆