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中有一个空格,在格式
和(
)之间。