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

问题:无序列表如何自定义样式? #70

Closed
tuhaihe opened this issue Oct 26, 2021 · 4 comments
Closed

问题:无序列表如何自定义样式? #70

tuhaihe opened this issue Oct 26, 2021 · 4 comments

Comments

@tuhaihe
Copy link

tuhaihe commented Oct 26, 2021

目前我们自定义了一套 CSS 样式,包括引用、正文、标题等都可以生效,但无序列表无法自定义样式,我尝试过的设置有:

ul, ol {
  padding-left: 15px;
}

li {
  margin: 10px;
}

li p {
  margin: 10px 0 !important;
}

ul ul, ul ol, ol ul, ol ol {
  margin: 0;
  padding-left: 10px;
}

ul {
  list-style: square;
}

dl {
  padding: 0;
}

dl dt {
  font-size: 1em;
  font-weight: bold;
  font-style: italic;
}

dl dd {
  margin: 0 0 10px;
  padding: 0 10px;
}

如果单纯设置无序列表的样式比如自定义字体、缩进,有特殊的标记格式嘛?

@tuhaihe
Copy link
Author

tuhaihe commented Oct 26, 2021

遇到的问题与 #23 类似,请了解的同学帮忙指点下 🤝

@yanglbme
Copy link
Member

收到,我们会尽快处理

@yanglbme
Copy link
Member

刚改了下,目前支持了有序、无序列表基础样式的自定义 @tuhaihe

@tuhaihe
Copy link
Author

tuhaihe commented Oct 26, 2021

@yanglbme 多谢!已实现期待的效果!
我关闭下本 Issue~

@tuhaihe tuhaihe closed this as completed Oct 26, 2021
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