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

一个新的关于h2问题的解决方案 #45

Closed
Seeridia opened this issue Jul 15, 2023 · 2 comments
Closed

一个新的关于h2问题的解决方案 #45

Seeridia opened this issue Jul 15, 2023 · 2 comments

Comments

@Seeridia
Copy link
Contributor

我又有一个关于h2问题的解决方案,摒弃现有的所有h2的代码,只用以下代码

#write h2 {
    background-color: var(--header-span-color);
    color: #ffffff;
    padding: 1px 10px;
    border-radius: 4px;
    display: inline;  /* 添加这一行 */
}

这算是从根本上解决问题
image

这就只需要改一下样式颜色就够了

但是也存在一定问题:

## 标题1

## 标题2

上面会显示为:
image

不过,应该不会出现多个标题放在一起吧,这个问题或可以忽略

@YiNNx
Copy link
Owner

YiNNx commented Jul 15, 2023

确实!!!牛蛙
来个PR!

@Seeridia
Copy link
Contributor Author

已在 #46 中发起PR

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