我想使用字體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