确定字体粗细的是font-weight属性;
它的number值可取100-900;
如果把属性设为normal,相当于number为400;
设为bold,相当于number为700;
html<b>或<strong>跟bold效果一样;
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style>
.yangshi1{ font-weight:bold}
.yangshi2{ font-weight:800}
.yangshi3{ font-weight:400}
.yangshi4{ font-weight:100}
</style>
</head>
<body>
<p>AAAAAA</p>
<strong>AAAAAA</strong><br/>
<b>BBBBBB</b><br/>
<span class="yangshi1">CCCCCC</span><br/>
<span class="yangshi2">DDDDDD</span><br/>
<span class="yangshi3">CCCCCC</span><br/>
<span class="yangshi4">DDDDDD</span><br/>
</body>
</html>
设为100是不是变细了,好像看不出来有太明显变化;