在CSS中,我们可以使用fontweight属性来改变字体的粗细程度,其中,数值越大则字体越加粗。但是如果想要设置文字不加粗,该怎么办呢?我们可以使用fontweight属性的值为“normal”来达...
在CSS中,我们可以使用font-weight属性来改变字体的粗细程度,其中,数值越大则字体越加粗。但是如果想要设置文字不加粗,该怎么办呢?
我们可以使用font-weight属性的值为“normal”来达到这个目的。在样式表中,可以像这样设置:
p {
font-weight: normal;
} #mytext {
font-weight: normal;
} p {
font-weight: lighter;
}