css加粗字体
在CSS中,可以使用font-weight属性来加粗字体,常用的值有bold和bolder,例如:
h1 {
font-weight: bold;
}
p {
font-weight: bolder;
}
还可以使用数字来指定字体的粗细程度,数字越大字体越粗,例如:
h2 {
font-weight: 700;
}
h3 {
font-weight: 600;
}
原文地址: https://www.cveoy.top/t/topic/fqs9 著作权归作者所有。请勿转载和采集!