【发布时间】:2022-07-07 01:45:20
【问题描述】:
在下面的 sn-p 中,我使用了::marker 来更改列表项的标记。然而,间距并不是我想要的,因为标记离文本太近了。添加一些空间会有所帮助,但似乎是一种解决方法。
.good > *::marker {
content: '\2713';
}
.good.spaced > *::marker {
content: '\2713 ';
}
<ul class="good">
<li>hello</li>
<li>hello</li>
</ul>
<ul>
<li>hello</li>
<li>hello</li>
</ul>
<ul class="good spaced">
<li>hello</li>
<li>hello</li>
</ul>
【问题讨论】:
标签: html css alignment html-lists glyph