css font-weight字號使用方法
語法:
font-weight : normal | bold | bolder | lighter | number
參數:
normal : 正常的字體。相當于number為400。聲明此值將取消之前任何設置
bold : 粗體。相當于number為700。也相當于b對象的作用
bolder : IE5+ 特粗體
lighter : IE5+ 細體
number : IE5+ 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
說明:
設置或檢索對象中的文本字體的粗細。
作用由用戶端系統安裝的字體的特定字體變量映射決定。系統選擇最近的匹配。也就是說,用戶可能看不到不同值之間的差異。
對應的腳本特性為fontWeight。請參閱我編寫的其他書目。
示例:
span { font-weight:800; }
- css font-stretch使用方法
- font-stretch : normal | narrower | wider | ultra-condensed | extra-condensed
- 03-21 關注:4
- css font字體使用方法
- font : font-style || font-variant || font-weight || font-size || line-height || font-family
- 03-21 關注:4