@font-face not working in Firefox?

爷,独闯天下 提交于 2019-12-04 16:13:14

Firebug shows that good old Foxy tries to load the *.eot versions, seems stupid but it simply loads the last definition.

You should wrap the IE part with a conditional comment:

<!--[if IE]>
@font-face {
font-family: ChevinLight;
src: url(uploads/fonts/chevilig-webfont.eot);
}
@font-face {
font-family: ChevinBold;
src: url(uploads/fonts/chevibol-webfont.eot);
}
@font-face {
font-family: ChevinExbold;
src: url(uploads/fonts/cheviextbol-webfont.eot);
}
<![endif]-->

Other way would be to put the IE definitions at the top.

Some bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=472647 - Either ignore .eot or support it
https://bugzilla.mozilla.org/show_bug.cgi?id=520357 - "We do not (and will not) support EOT."[sic]

Yeah, usual Mozilla unpropress.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!