Css @字体在Firefox 3.6.14中不起作用-WOFF或TTF

Css @字体在Firefox 3.6.14中不起作用-WOFF或TTF,css,font-face,Css,Font Face,@字体在Firefox 3.6.14中不起作用-WOFF或TTF @font-face { font-family: "A-B"; src: url("fonts/AlexandriaFLF-Bold.woff") format("woff"), url("fonts/AlexandriaFLF-Bold.ttf") format("truetype"), url("fonts/AlexandriaFLF-Bold.svg#webfontm3e

@字体在Firefox 3.6.14中不起作用-WOFF或TTF

@font-face {
    font-family: "A-B";
    src: url("fonts/AlexandriaFLF-Bold.woff") format("woff"),
         url("fonts/AlexandriaFLF-Bold.ttf") format("truetype"),
         url("fonts/AlexandriaFLF-Bold.svg#webfontm3eq21Q4") format("svg");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'A-BI';
    src: url("fonts/AlexandriaFLF-BoldItalic.woff") format("woff"),
         url("fonts/AlexandriaFLF-BoldItalic.ttf") format("truetype"),
         url("fonts/AlexandriaFLF-Bold.svg#webfontszsn4DPI") format("svg");
    font-weight: normal;
    font-style: normal;
}
有人能启发我吗?

修复:

我使用了一个.htaccess文件进行mod重写,它影响了@font-face

解决方法是将其放在.htaccess文件中:

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

标题集访问控制允许原点“*”

我也想插话。我刚刚遇到了一个类似的问题,因为我将该站点引用为www.domain.com而不是domain.com

这是在我的主样式表中作为字体css文件的导入

@import url('http://www.domain.com/font.css'); - not working


@import url('http://www.domain.com/font.css'); - working

你需要它的原因与字体无关。这是因为您试图提供来自不同来源的内容。+1请参见,嗯,您发布的两行代码之间有什么不同?您的意思是将其中一行代码放在没有w3的位置吗?