我试图去排队页脚菜单,只选择第一个列表元素作为单一选择joomla的5 col footer菜单的css选择器?
<ul class="someclass">
<li><!--this is what I am trying to capture-->
<a>something arbitrary here</a>
<ul>
<li>list elemnts here</li>
<li>list elemnts here</li>
<li>list elemnts here</li>
<li>list elemnts here</li>
</ul>
</li>
<li>
<a>something arbitrary here</a>
<ul>
<li>list elemnts here</li>
<li>list elemnts here</li>
<li>list elemnts here</li>
<li>list elemnts here</li>
</ul>
</li>
<li>
<a>something arbitrary here</a>
<ul>
<li>list elemnts here</li>
<li>list elemnts here</li>
<li>list elemnts here</li>
<li>list elemnts here</li>
</ul>
</li>
</ul>
我希望能够选择所有顶部<li>
元素,而不直接选择每隔内饰<li>
元素。我应该使用哪个css选择器?
'ul.someclass:first-child {...}'? – Vucko 2013-03-02 12:19:13