Firefox webfont不适用于两个域之一

Firefox webfont不适用于两个域之一,firefox,webfonts,Firefox,Webfonts,我在我们的网站上实现了webfont。该网站可通过两个域访问: / webfont的实现方式如下: @font-face { font-family: Quattrocento-Sans; src: url('./style/Quattrocento Sans.woff'); } @font-face { font-family: Quattrocento-Sans-Bold; src: url('./style/Quattrocento Sans Bold.w

我在我们的网站上实现了webfont。该网站可通过两个域访问:

/

webfont的实现方式如下:

@font-face {
    font-family: Quattrocento-Sans;
    src: url('./style/Quattrocento Sans.woff');
}

@font-face {
    font-family: Quattrocento-Sans-Bold;
    src: url('./style/Quattrocento Sans Bold.woff');
}
如果您通过两个域查看firefox中的网站,您将看到字体在两个域中的一个域上不起作用

该网站是一个wordpress,如果我将主页url切换到另一个域,它不会在上工作,而是在另一个域上工作


有什么问题吗?

您是否尝试过在htaccess中添加字体mime类型? 只是出于兴趣你为什么只使用woff?没有真正的类型等?

不加载webfonts

通过更改主题标题页中的style.css url 从


可能会解决您的问题。

我在谷歌上搜索过,但没有找到如何在htaccess中添加字体mime类型。我真的不知道为什么我们只使用woff。这里的其他开发人员给出了……不,不幸的是没有:(我将从这里下载一个字体并使用它们的代码。您可以使用此站点生成其他文件类型。若要设置mime类型,请参见此处:只需将这些行添加到名为.htaccess的文件并添加到服务器的根目录中。这些文件隐藏在OS X中,因此您需要显示不可见的文件。HTHDo只更改!我是说,对于site、 链接应该是
,对于站点,链接应该是
它的一个网站。两个域链接到同一个服务器如果可以,请将
src:url('./style/Quattrocento Sans.woff');
更改为
src:url('http://blog.von-der-see.de/wp-content/themes/vondersee/style/Quattrocento Sans.woff');
src:url相同('./style/Quattrocento Sans Bold.woff');
to
src:url('http://blog.von-der-see.de/wp-content/themes/vondersee/style/Quattrocento Sans Bold.woff');
您是否将其还原?因为我看到
@font-face{font-family:Quattrocento Sans;src:url('./style/Quattrocento Sans.woff');}
@font-face{font-family:Quattrocento Sans-Bold;src:url('./style/Quattrocento Sans-Bold.woff');}