Html 使用psuedo元素作为有序列表的样式,同时保留缩进
我遇到了CMS正在生成表单列表的情况Html 使用psuedo元素作为有序列表的样式,同时保留缩进,html,css,Html,Css,我遇到了CMS正在生成表单列表的情况 <ul> <li> <a>Here's list item 1, which will wrap onto the next next due to the size of the ul element containing it</a> </li> <li> <a>Here's list item 2, which
<ul>
<li>
<a>Here's list item 1, which will wrap onto the next next due to the size of the ul element containing it</a>
</li>
<li>
<a>Here's list item 2, which will wrap onto the next next due to the size of the ul element containing it</a>
</li>
<li>
<a>Here's list item 3, which will wrap onto the next next due to the size of the ul element containing it</a>
</li>
</ul>
-
您能给伪元素一个负边距吗:
ul > li:before {content: ">";margin-left:-.8em;}