html - Mozilla Firefox @font face 不工作

标签 html css firefox

在我的 Style.css 中有如下代码:

@font-face {
font-family: 'newbold'; 
src: url('../fonts/newbol-webfont.eot'); /* IE9 Compatibility Modes */
src: url('../fonts/newbol-webfont.ttf');
src: url('../fonts/newbol-webfont.woff');
}

那只是相对路径,没有绝对路径,firefox 不想加载字体... .htaccess 解决方案没有解决我的问题..

最佳答案

我不确定你为什么不把它放在你的 CSS 中:

* {
 font-family: newbold, sans-serif;
}

这段代码在我测试时对我来说工作正常。

关于html - Mozilla Firefox @font face 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31649131/

相关文章:

jquery - 隐藏选择中的第一个选项

javascript - TinyMCE 编辑器删除空格

Javascript window.location.replace 只是重新加载此页面

html - 如何使背景图像调整大小以容纳其中的所有文本

javascript - Firefox 插件 - 图标不显示

javascript - R leaflet - 显示/隐藏带有组层的 addControl() 元素

forms - 将标签放在输入表单旁边

php - 为什么我的 HTML 片段会出现在页面上并破坏页面?与 PHP 相关吗?

javascript - 火狐引导插件 : install event is not executed

html - firefox 3 favicons - 如何制作它们?