css font-weight字號使用方法
語法:
font-weight : normal | bold | bolder | lighter | number
參數(shù):
normal : 正常的字體。相當(dāng)于number為400。聲明此值將取消之前任何設(shè)置
bold : 粗體。相當(dāng)于number為700。也相當(dāng)于b對象的作用
bolder : IE5+ 特粗體
lighter : IE5+ 細(xì)體
number : IE5+ 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
說明:
設(shè)置或檢索對象中的文本字體的粗細(xì)。
作用由用戶端系統(tǒng)安裝的字體的特定字體變量映射決定。系統(tǒng)選擇最近的匹配。也就是說,用戶可能看不到不同值之間的差異。
對應(yīng)的腳本特性為fontWeight。請參閱我編寫的其他書目。
示例:
span { font-weight:800; }
作者:大學(xué)生新聞網(wǎng) 來源:大學(xué)生新聞網(wǎng)
發(fā)布時(shí)間:2025-03-23 閱讀:
- css font-stretch使用方法
- font-stretch : normal | narrower | wider | ultra-condensed | extra-condensed
- 03-21 關(guān)注:4
- css font字體使用方法
- font : font-style || font-variant || font-weight || font-size || line-height || font-family
- 03-21 關(guān)注:4