我的@ font-face在我试过的每一个其他浏览器中都能正常工作,但是在Windows上的Firefox上,它会加载字体资源,但会显示回退。这是有问题的代码:font-face没有在Firefox上显示
@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做一些事情,或者仅仅是我的代码?
编辑:应该添加,使用Firefox 8,最终产品是在Blogger上。
如果将'ttf'字体放在最后?你需要所有其他的后备? – Blender
最后放置ttf并没有帮助,所有其他回退都是首选,因为较老的Internet Explorer版本上的很多用户都会访问。 – Space