繁体   English   中英

HTML - 字体仅在Chrome中显示正确,但在IE或Firefox中不显示

[英]HTML - Fonts will only display correct in Chrome but not in IE or Firefox

我在公司网站上创建了一个新页面。 它看起来很棒,但仅限于谷歌浏览器。

字体无法在Internet Explorer或Firefox中正确显示。

这是该页面的链接。 (实际内容在iframe中, http://www.lynch.ie/test/map.html

http://www.lynch.ie/test/test.html

谢谢,

请帮助我,我跪在这一个! 先感谢您。

大卫L.

您似乎正在从其他域加载字体文件。

Firefox和可能的IE不允许这样做,除非你设置一个Access-Control-Allow-Origin标题,示例(来自Callum Silcock的博客文章 ):

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff

<FilesMatch "\.(ttf|otf|eot|woff)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM