font
英 [f?nt]? ?美 [fɑ:nt]??
n.字體;字形;圣洗池(設于教堂中,常為石造);(同樣字體和字號的)一副鉛字
復數(shù): fonts
weight
英 [we?t]? ?美 [wet]??
n.重量,體重;重擔,重任;重要;[統(tǒng)]權,加重值,權重
vt.加重于,使變重;使負重,使負擔或壓迫;[統(tǒng)]使加權,附加加重值于
第三人稱單數(shù): weights 復數(shù): weights 現(xiàn)在分詞: weighting 過去式: weighted
css font-weight屬性 語法
作用:設置文本的粗細。
說明:該屬性用于設置顯示元素的文本中所用的字體加粗。數(shù)字值 400 相當于 關鍵字 normal,700 等價于 bold。每個數(shù)字值對應的字體加粗必須至少與下一個最小數(shù)字一樣細,而且至少與下一個最大數(shù)字一樣粗。
注釋:所有主流瀏覽器都支持 font-weight 屬性。
css font-weight屬性 示例
<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>
運行實例 ?
點擊 "運行實例" 按鈕查看在線實例