我要这个:
1. Main
1.1 sub1
1.2 sub2
2. Main2
2.1 sub3
可以在 HTML 中做到这一点吗?
谢谢。
这个解决方案对我有用:
/* hide original list counter */
ol li {display:block;}
/* OR */
ol {list-style:none;}
ol > li:first-child {counter-reset: item;} /* reset counter */
ol > li {counter-increment: item;} /* increment counter */
ol > li:before {content:counters(item, ".") ". "; font-weight:bold;} /* print counter */
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)