我有一个列表,我想在列表文本之前添加刻度符号。是否有任何 CSS 可以帮助我以这种方式应用?
✓ this is my text
✓ this is my text
✓ this is my text
✓ this is my text
✓ this is my text
✓ this is my text
注意:我想要这种类型的 HTML 代码
<ul>
<li>this is my text</li>
<li>this is my text</li>
<li>this is my text</li>
<li>this is my text</li>
<li>this is my text</li>
</ul>
原文由 Stack-overflow-hero 发布,翻译遵循 CC BY-SA 4.0 许可协议
您可以使用 伪元素 在每个列表项之前插入该字符: