【发布时间】:2018-06-07 09:35:37
【问题描述】:
我的有序列表的 css 样式有问题。
我有我的 HTML 代码:
ol {
counter-reset: item
}
li {
display: block
}
li:before {
content: counters(item, ".")" ";
counter-increment: item
}
<ol>
<li class="sub">one</li>
<li class="">two
<ol>
<li class="small">two.one</li>
<li class="small">two.two</li>
<li class="small">two.three</li>
</ol>
</li>
<li>three
<ol>
<li>three.one</li>
<li>three.two
<ol>
<li>three.two.one</li>
<li>three.two.two</li>
</ol>
</li>
</ol>
</li>
<li>four</li>
</ol>
我需要从 1 一、2 二、3 三和 4 四中隐藏数值 有人有想法,请问怎么做?
【问题讨论】:
标签: html css html-lists