【发布时间】:2013-05-28 20:59:56
【问题描述】:
给定
<ul class="menu">
<li> <!-- layer1 -->
<a href="/gbcweb/index.php?option=com_content&view=article&id=19&Itemid=27">
<span>sub menu</span>
</a>
<ul>
<li><!-- layer2 -->
<a href="/gbcweb/index.php?option=com_content&view=article&id=22&Itemid=34">
<span>sub menu1</span>
</a>
<ul>
<li><!-- layer3 -->
<a href="/gbcweb/index.php?option=com_content&view=article&id=22&Itemid=34">
<span>sub menu2</span>
</a>
<!-- Continue layering -->
</li>
</ul>
</li>
</ul>
</li><ul>
如何选择所有从第 2 层开始的内容?并为所有子菜单设置背景图像。
【问题讨论】:
标签: html css css-selectors