私のhtml
コードでは、次のリストが定義されています。
<p class="list">first.</p>
<p class="list">second.</p>
今、css
私は持っています:
.list {
display: table;
}
.list:before {
display: table-cell;
counter-increment: counter;
content: counter(counter) '.';
padding-right: 5px;
}
ページの結果は次のとおりです。
1. first
1. second
2 番目の数値を 2 の値にインクリメントするにはどうすればよいですか?