我想使用字体bmI0GxZww8t20K342Lco0g.woff2进行分类,但它不是以该字体呈现;我究竟做错了什么?为什么我的首选CSS字体没有被使用?
<html>
<head>
<style>
.classa {color:blue}
.classb {font-family:Arial, Helvetica, sans-serif; color:blue}
.classc {
font-family: TimesNewRoman, 'Times New Roman', Times, Baskerville, Georgia, serif;
font-size: 30px;
font-style: normal;
font-variant: normal;
font-weight: 500;
line-height: 15.3999996185303px;
color:blue;
}
.classd @font-face {
font-family: MyFont;
src:
url('bmI0GxZww8t20K342Lco0g.woff2') format('woff2'),
url('bmI0GxZww8t20K342Lco0g.woff') format('woff');
}
<link rel="stylesheet" type="text/css" href="csss.css">
</style>
</sead>
<h1 class="classa">Bro This Is Blue.</h1>
<h1 class="classb">Bro This Is Blue.</h1>
<h1 class="classc">Bro This Is Blue.</h1>
<h1 class="classd">Bro.</h1>
</html>
'行高:15.3999996185303px;'??? – Nabi
欢迎来到SO!确保你在这个网站上前进,使用更好的标题 - 这将有助于它更好地被注意到。在这里张贴的每个人都有一个需要解决的问题,对吧? – patricksweeney