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
Css @字体面适用于一种字体,而不是另一种_Css_Font Face - Fatal编程技术网

Css @字体面适用于一种字体,而不是另一种

Css @字体面适用于一种字体,而不是另一种,css,font-face,Css,Font Face,@字体脸快把我逼疯了!还有什么新鲜事 我的样式表中有以下代码: @font-face { font-family: BebasNeue; src: url('/style/fonts/bebasneue-webfont.svg#bebas_neueregular') format('svg'), url('/style/fonts/bebasneue-webfont.woff') format('woff'), url('/style/font

@字体脸快把我逼疯了!还有什么新鲜事

我的样式表中有以下代码:

@font-face {
    font-family: BebasNeue;
    src: url('/style/fonts/bebasneue-webfont.svg#bebas_neueregular') format('svg'),
         url('/style/fonts/bebasneue-webfont.woff') format('woff'),
         url('/style/fonts/bebasneue-webfont.ttf') format ('truetype'),
         url('/style/fonts/bebasneue-webfont.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Quicksand;
    src: url('/style/fonts/quicksand-regular-webfont.svg#Quicksand') format('svg'),
         url('/style/fonts/quicksand-regular-webfont.woff') format('woff'),
         url('/style/fonts/quicksand-regular-webfont.ttf') format('truetype'),
         url('/style/fonts/quicksand-regular-webfont.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}
流沙装载,Bebas不装载。我已经重新下载了字体(从字体松鼠),重新转换它,拔出我的头发,祈祷奥丁


在Chrome的inspector里我得到了一个“Bebas样式表的SVG行上的CSS属性值无效,但我看不出这与Quicksand下的同一行有什么区别。在Chrome和FF中,quicksand-regular-webfont.woff都显示在参考资料下,但是-惊喜不是bebasneue webfont.woff。

错误可能在这里:

src:url('/style/font/bebasneue webfont.svg#bebas_neueregular')格式('svg')


你必须写。#bebasneue\u regular

你能链接到一个实例吗?我相信你可以省略
格式(XXX)
,不管怎样,你在第一个.ttf中有一个空格,在
格式
)之间。