@ font-face在Firefox中不起作用 [英] @font-face not work in Firefox

查看:179
本文介绍了@ font-face在Firefox中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  @ font-face 

在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')格式('embedded-opentype'),
url('http:/ /static.dubrovka.dn.ua/wof/PopularScript.woff')格式('woff'),
url('http://static.dubrovka.dn.ua/ttf/PopularScript.ttf')格式('truetype'),
url('http://static.dubrovka.dn.ua/otf/PopularScript.otf')格式('opentype'),
url('http:// static.dubrovka.dn.ua/svg/PopularScript.svg#PopularScript')format('svg');
font-weight:normal;
font-style:normal;

$



它可以在Firefox以外的任何浏览器上运行。


Firefox不允许跨域加载字体来提高安全性。以下是一些解决方案: http:// www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default


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.

解决方案

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

这篇关于@ font-face在Firefox中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆