CSS中font-weight属性的用法

Usage of font-weight property in CSS

font-weight属性用于增加或减少字体的粗体显示。 font-weight属性提供了指定字体的粗体功能。 可能的值可以是正常,粗体,粗体,较浅,100、200、300、400、500、600、700、800、900。

1
2
3
4
5
6
7
8
9
10
11
12
<html>
 <head>
 </head>
 <body>
   <p style ="font-weight:bold;">This font is bold.
</p>
   <p style ="font-weight:bolder;">This font is bolder.
</p>
   <p style ="font-weight:300;">This font is 500 weight.
</p>
 </body>
</html>