CSS font-weight 属性解析

css中font-weight 属性设置文本的粗细

属性值:

normal : 默认值。定义标准的字符。
bold : 定义粗体字符。
bolder :定义更粗的字符。
lighter :定义更细的字符。
inherit :规定应该从父元素继承字体的粗细。

实例:

<html>
<head>
<meta charset="utf-8"> 
<title>IT懒猫 www.catroom.com.cn</title>
<style>
p.normal {font-weight:normal;}
p.light {font-weight:lighter;}
p.thick {font-weight:bold;}
p.thicker {font-weight:900;}
</style>
</head>

<body>
<p class="normal">hello boys and girls</p>
<p class="light">hello boys and girls</p>
<p class="thick">hello boys and girls</p>
<p class="thicker">hello boys and girls</p>
</body>

</html>

效果:
font-weight