假设这种情况,这有点棘手:
<div class='top'>
<div id='page1' class='in'>
Mickey
</div>
<div id='page2' class='in'>
Donald
</div>
</div>
我想用div类包装div,将它编号为level1,level2等导致:
<div class='top'>
<section class='level0'>
<div id='page1' class='in'>
Mickey
</div>
</section>
<section class='level1'>
<div id='page2' class='in'>
Donald
</div>
</section>
</div>
任何线索?谢谢!