去掉二级标题的序号
HaHaRen6 opened this issue · comments
如何去掉二级标题(h2)的序号,但保持h3,h4等序号不变
#write h2:before {
counter-increment: h2;
content: counter(h2);
margin-right: 1.2em;
}
我尝试将这里第三行注释掉,但是h3就从0.1开始了
#write h2:before {
counter-increment: h2;
content: counter(h2);
/* margin-right: 1.2em; */
visibility: hidden;
position: absolute;
}
解决了,谢谢:)