我有這樣的HTML和CSS我想做設計。CSS設計訂單清單
CSS:
ol li {list-style-type: decimal-leading-zero;}
HTML:以上
<ol>
<li>One</li>
<li>Two</li>
<li>Three
<ol>
<li>Three.One</li>
<li>Three.Two</li>
</ol>
</li>
<li>Four</li>
</ol>
與此
現在是我的HTML和CSS的內容。正如你所看到的,我不想在這個訂單列表中使用任何span元素或錨標籤。那麼,我可以爲OL(訂單)號碼和李的文字內容製作不同的顏色嗎?我想讓紅色的數字和黑色的李的內容。
的(我自己的問題,從前段時間)可能重複:如何上色列表風格 - 鍵入auo生成的數字?](http://stackoverflow.com/questions/725741/how-to-colour-the-list-style-type-auto-generated-numbers) – 2013-05-09 07:07:47