Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html firefox中iframe中未显示字体_Html_Iframe_Fonts - Fatal编程技术网

Html firefox中iframe中未显示字体

Html firefox中iframe中未显示字体,html,iframe,fonts,Html,Iframe,Fonts,我有一个带iframe的页面。Iframe内容来自其他域,但我有一个css文件包含在该域的head中,所以这两个文件的样式都是相同的。除了标题h1,使用特殊字体。它在Chrome、Opera、IE和Safari中都能正常显示,但在Firefox中却不能正常显示:(它回到了Arial @font-face { font-family: 'TheSansLight'; src: url('ABSOLUTEPATH/fonts/TheSans_TT3_.eot?iefix') fo

我有一个带iframe的页面。Iframe内容来自其他域,但我有一个css文件包含在该域的
head
中,所以这两个文件的样式都是相同的。除了标题
h1
,使用特殊字体。它在Chrome、Opera、IE和Safari中都能正常显示,但在Firefox中却不能正常显示:(它回到了Arial

@font-face {
     font-family: 'TheSansLight';
     src: url('ABSOLUTEPATH/fonts/TheSans_TT3_.eot?iefix') format('ie9-skip-eot'),
           url('ABSOLUTEPATH/fonts/TheSans_TT3_.woff') format('woff'),
           url('ABSOLUTEPATH/fonts/TheSans_TT3_.svg#TheSans_TT3_') format('svg');
}
以及后来的css

font-family: "TheSansLight", Arial, Helvetica, Verdana, sans-serif;

enyone知道firefox为什么不在iframe中呈现字体吗?

firefox有一个跨域的@font-face策略,除非在远程主机上特别允许,否则会阻止它们。Google提供了许多教程,用于使用Apache配置解决此问题,例如:


谢谢,伙计。看起来确实是它的解决方案。但愿我不必为这些请求打扰其他服务器管理员:(