Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 使用psuedo元素作为有序列表的样式,同时保留缩进_Html_Css - Fatal编程技术网

Html 使用psuedo元素作为有序列表的样式,同时保留缩进

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

我遇到了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 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;}