Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

去掉二级标题的序号 #119

Closed
HaHaRen6 opened this issue Sep 7, 2023 · 2 comments
Closed

去掉二级标题的序号 #119

HaHaRen6 opened this issue Sep 7, 2023 · 2 comments

Comments

@HaHaRen6
Copy link

HaHaRen6 commented Sep 7, 2023

如何去掉二级标题(h2)的序号,但保持h3,h4等序号不变

#write h2:before {
  counter-increment: h2;
  content: counter(h2);
  margin-right: 1.2em;
}

我尝试将这里第三行注释掉,但是h3就从0.1开始了

@Keldos-Li
Copy link
Owner

#write h2:before {
  counter-increment: h2;
  content: counter(h2);
  /* margin-right: 1.2em; */
  visibility: hidden;
  position: absolute;
}

@HaHaRen6
Copy link
Author

HaHaRen6 commented Sep 7, 2023

解决了,谢谢:)

@HaHaRen6 HaHaRen6 closed this as completed Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants