【问题标题】:my fonts are not working when I open my website in firefox当我在 Firefox 中打开我的网站时,我的字体不起作用
【发布时间】:2014-06-06 14:33:27
【问题描述】:

我正在使用 font-face,以及 AntennaCond 和 Roboto 字体。这两种字体在 Safari 和 chrome 中都可以使用,但在 Firefox 中会崩溃。

这是我的网站:http://www.ux-pm.com

知道为什么会这样吗?

【问题讨论】:

标签: css html firefox fonts font-face


【解决方案1】:

您需要检查 css 文件中字体的路径,还需要不同类型(.ttf、.woff、.eot、.svg)的字体来跨浏览器呈现。

1) 像 http://www.font2web.com/http://www.fontsquirrel.com/tools/webfont-generator 这样的网站,您可以在其中上传字体,它会为您提供现成的文件夹结构,并应用 css 和自定义字体。

2) Reference 类似问题。

希望这会有所帮助。

【讨论】:

  • 好吧,我使用了 fontsquirrel,并在我的代码中添加了 ttf、.eot 和 .woff 类型,但仍然没有结果.. 有什么想法吗?
猜你喜欢
  • 2012-10-01
  • 2019-05-17
  • 2016-10-06
  • 1970-01-01
  • 1970-01-01
  • 2019-11-06
  • 1970-01-01
  • 1970-01-01
  • 2016-08-26
相关资源
最近更新 更多