@font-face not work in Firefox

℡╲_俬逩灬. 提交于 2020-01-05 07:48:32

问题


Have a some trouble whit @font-face in Firefox.

@font-face{
font-family:'PopularScript';
src:url('http://static.dubrovka.dn.ua/eot/PopularScript.eot');
src:url('http://static.dubrovka.dn.ua/eot/PopularScript.eot?#iefix') format('embedded-opentype'),
    url('http://static.dubrovka.dn.ua/wof/PopularScript.woff') format('woff'),
    url('http://static.dubrovka.dn.ua/ttf/PopularScript.ttf') format('truetype'),
    url('http://static.dubrovka.dn.ua/otf/PopularScript.otf') format('opentype'),
    url('http://static.dubrovka.dn.ua/svg/PopularScript.svg#PopularScript') format('svg');
font-weight:normal;
font-style:normal;
}

It work's in any browser except Firefox.


回答1:


Firefox doesn't allow cross-domain font loading for security. Here are some solutions: http://www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default



来源:https://stackoverflow.com/questions/14445516/font-face-not-work-in-firefox

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