Font-weight font-weight 字体浓淡(粗细)属性,该CSS属性用来设定字体的浓淡程度。 值:normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600...
font-weight 字体浓淡(精细)属性,该CSS属性用来设定字体的浓淡程度。 值:normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800...
实例 三段文字设置不同的字体粗细: p.normal {font-weight:normal;} p.thick {font-weight:bold;} p.thicker {font-weight:900;} 尝试一下 » 属性定义及使用说明font-weigh...
p.normal {font-weight:normal;} p.thick {font-weight:bold;} p.thicker {font-weight:900;} 亲自试一试浏览器支持 表格中的数字注明了完全支持该属性的首个浏览器版本。 ...
概述 font-weight CSS 属性指定了字体的粗细程度。一些字体只提供 normal 和bold 两种值。 尝试一下/* Keyword values */ font-weight: normal; font-weight: bold; /* ...
font-weight 属性设置文本的粗细。 说明 该属性用于设置显示元素的文本中所用的字体加粗。数字值 400 相当于 关键字 normal,700 等价于 bold。每个数字值对应的字体加粗必须...
1 新建一个html文件,命名为test.html,用于讲解css中font-weight属性有什么用处。2 在test.html文件中,使用span标签创建一行文字,用于测试。3 在css标签内,将font-weight属性设...
font-weight属性用于设置显示元素的文本中所用的字体加粗。 此属性的常用属性值如下所示: 示例: 将下面的标签的粗细分别设置为 normal、bold、700、900:
收录于:2022-12-11 04:40:05