信我想信从我的下<ol>
像my question添加到<li>
- 元素:一个风格的有序列表,其嵌套列表应该有一个数字使用CSS counter属性
body { counter-reset: item; }
ol.numbered_style li:before
{
counter-increment:item;
margin-bottom:5px;
margin-right:10px;
content:counter(item);
background:blue;
border-radius:100%;
color:white;
width:1.2em;
text-align:center;
display:inline-block;
}
ol.numbered_style.start_3{
counter-reset: item 2;
}
ol.none, ul.none,ol.numbered_style { list-style: none; }
<ol class="numbered_style">
\t <li>first</li>
\t <li>second</li>
\t <li>third Lorem Ipsum
\t \t <ol class="numbered_style start_3">
\t \t \t <li>missing an a after the number</li>
\t \t \t <li>missing a b after the number</li>
\t \t \t <li>missing a c after the number</li>
\t \t </ol>
\t </li>
</ol>
list-style-type: lower-alpha;
谢谢您的回答,但我想3A,3B,3C不但A,B,C – Grischa
@Grischa查看更新后的演示内容': “3” 计数器(item2,上拉丁文);' – zer00ne