<!DOCTYPE html><html><head><metacharset="utf-8"><title>字体粗细</title><styletype="text/css">.a{font-weight: normal;}.b{font-weight: bold;}.c{font-weight: 100;}/* p { font-weight: normal | bold | bolder | lighter | number ;}
normal 默认粗细 bold 定义粗体
number 100|200|300|400|500|600|700|800|900
400 = normal 700 = bold*/</style></head><body><pclass="a">众所周知</p><pclass="b">溯琳</p><pclass="c">很帅</p></body></html>
字体样式
<!DOCTYPE html><html><head><metacharset="utf-8"><title>字体样式</title><styletype="text/css">p{font-style: italic;}/* normal 默认值,浏览器会显示标准的字体样式
italic 斜体样式*/</style></head><body><p>溯琳真帅</p></body></html>