font
英[f?nt]? ?美[fɑ:nt]??
n.字體;字形;聖洗池(設(shè)為教堂中,常為石造);(同字號和字號的)一副鉛字
複數(shù): fonts
weight
英[we?t]? ?美[wet]??
n.重量,體重;重擔(dān),重任;重要;[統(tǒng)]權(quán),加重值,權(quán)重
vt.加重於,使變重;使負重,使負擔(dān)或壓迫;[統(tǒng)]使加權(quán),附加加重值於
第三人稱單數(shù): weights 複數(shù): weights 現(xiàn)在分詞: weighting 過去式: weighted
css font-weight屬性 語法
作用:設(shè)定文字的粗細。
說明:此屬性用於設(shè)定顯示元素的文字中所使用的字體加粗。數(shù)字值 400 相當(dāng)於 關(guān)鍵字 normal,700 等價於 bold。每個數(shù)字值對應(yīng)的字體加粗必須至少與下一個最小數(shù)字一樣細,而且至少與下一個最大數(shù)字一樣粗。
註解:所有主流瀏覽器都支援 font-weight 屬性。
css font-weight屬性 範(fàn)例
<html> <head> <style type="text/css"> p.normal {font-weight: normal} p.thick {font-weight: bold} p.thicker {font-weight: 900} </style> </head> <body> <p class="normal">php中文網(wǎng)</p> <p class="thick">php視頻教程</p> <p class="thicker">php程序員詞典</p> </body> </html>
執(zhí)行實例 ?
點擊 "執(zhí)行實例" 按鈕查看線上實例