Signika Negative Bold字体在我的html网站上无效

时间:2018-03-14 11:57:14

标签: html css twitter-bootstrap

Signika Negative Bold字体在我的html网站上无效, 如果我尝试其他一些字体,它可以使用font-family: 'Signika Negative Bold';

它不起作用

HTML:

<div id="green">hewhehhwhehwe </div>

的CSS:

#green {
font-family: 'Signika Negative Bold';
}

this is what I have right now

1 个答案:

答案 0 :(得分:-1)

请指定字体名称并指定URL,如下所示:

&#13;
&#13;
<!DOCTYPE html>
<html>
<head>
<style> 
    @font-face {
    font-family: myFirstFont;
    src: url(signika-v8-latin-regular.woff);
}


div {
    font-family: myFirstFont;
}
</style>
</head>
<body>

<h1>The @font-face Rule</h1>

</body>
</html>
&#13;
&#13;
&#13;