我的@ 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