HTML代码:
<span class="title">《关雎》</span>
样式:
.title{ font-weight:bold;/设置字体为粗体/ text-decoration:underline;/设置文本显示方式为带下划线/ }
font-weight属性值:normal(默认值,定义标准的字符),bold(粗体),bolder(更粗),lighter(更细),100~900,inherit(从父元素继承)
font-weight使用bold关键字可以将文本设置为粗体,关键字100~099为字体指定了9级加粗度。100对应最细的字体变形,900对应最粗的字体变形。数字400等价于normal,而700等价于bold
text-decoration属性值:none(默认。定义标准文本),underline(下划线),overline(文本上的一条线),line-through(贯穿文本的线),blink(闪烁),inherit(继承父类的text-decoration)