信我想信從我的下<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