Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/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 CSS嵌入字体在Firefox中不起作用_Html_Css_Firefox_Fonts - Fatal编程技术网

Html CSS嵌入字体在Firefox中不起作用

Html CSS嵌入字体在Firefox中不起作用,html,css,firefox,fonts,Html,Css,Firefox,Fonts,我在我的网站上添加了一种字体,但是它没有出现在firefox中,有人知道为什么会这样吗 我的CSS在上面,我的字体在我的CSS样式文件夹中 任何帮助都将不胜感激 您可以尝试在Firefox中使用此代码来使用特定于浏览器的css,这是特定于浏览器的css攻击的良好来源,或者您可以在谷歌上搜索特定于浏览器的css @font-face { font-family: 'exoregular'; src: url('exo-regular-webfont.eot'); src:

我在我的网站上添加了一种字体,但是它没有出现在firefox中,有人知道为什么会这样吗

我的CSS在上面,我的字体在我的CSS样式文件夹中


任何帮助都将不胜感激

您可以尝试在Firefox中使用此代码来使用特定于浏览器的css,这是特定于浏览器的css攻击的良好来源,或者您可以在谷歌上搜索特定于浏览器的css

@font-face {
    font-family: 'exoregular';
    src: url('exo-regular-webfont.eot');
    src: url('exo-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('exo-regular-webfont.woff2') format('woff2'),
         url('exo-regular-webfont.woff') format('woff'),
         url('exo-regular-webfont.ttf') format('truetype'),
         url('exo-regular-webfont.svg#exoregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

希望这有帮助

使用类似的方法可能会更容易。不幸的是,这没有起到任何作用,你还有其他的想法吗?@ScottShannon很抱歉听到这个消息,也许这个答案可以帮助你更多[链接]
@-moz-document url-prefix() {
          @font-face {
    font-family: 'exoregular';
    src: url('exo-regular-webfont.eot');
    src: url('exo-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('exo-regular-webfont.woff2') format('woff2'),
         url('exo-regular-webfont.woff') format('woff'),
         url('exo-regular-webfont.ttf') format('truetype'),
         url('exo-regular-webfont.svg#exoregular') format('svg');
    font-weight: normal;
    font-style: normal;

}
}