CSS counters let you create dynamic lists without JavaScript. In this lesson, we will create a multi-level table of contents using the CSS counter-reset
and counter-increment
properties with the counter
attribute.
[CSS] Use CSS Counters to Create Pure CSS Dynamic Lists
原文:http://www.cnblogs.com/Answer1215/p/5975122.html