实例
三段文字设置不同的字体粗细:
p.normal {font-weight:normal;} p.thick {font-weight:bold;} p.thicker {font-weight:900;}
属性定义及使用说明
font-weight 属性设置文本的粗细
默认值: | normal |
---|---|
继承: | yes |
版本: | CSS1 |
JavaScript 语法: | object.style.fontWeight="900" |
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
属性 | |||||
---|---|---|---|---|---|
font-weight | <