<分区>
<分区>
您好,我正在为一个客户开发网站,我在 Firefox 上玩得很开心。
@fontface 字体之一加载得很好 (TheHandRegular),但第二个 (TheHandBold) 似乎无法加载。我用 W3C Validator 检查并重新检查了我的 CSS,结果完美无缺。
这是一个托管在 media-temple 上的 wordpress 网站,就我的生活而言,我似乎无法理解这一点。
http://www.healthygreenkitchen.com
非常感谢 萨布丽娜
最佳答案
看起来您的 CSS 为每个字体声明了两次,第二次是在文件夹 webfonts
中查找 TheHandBold 而不是 TheHandRegular。
@font-face {
font-family: 'TheHandRegular';
src: url('2B06C8_0_0.eot');
src: url('2B06C8_0_0.eot?#iefix') format('embedded-opentype'),
url('2B06C8_0_0.woff') format('woff'),
url('2B06C8_0_0.ttf') format('truetype');
}
@font-face {
font-family: 'TheHandBold';
src: url('webfonts/2B06F9_0_0.eot');****this line****
src: url('webfonts/2B06F9_0_0.eot?#iefix') format('embedded-opentype'),****this line****
url('webfonts/2B06F9_0_0.woff') format('woff'), ****this line****
url('webfonts/2B06F9_0_0.ttf') format('truetype'); ****this line****
}
关于css - Firefox 中的@fontface 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23960717/