Akat_Muke
2017-02-07 13:58
<div class="div">
<ul class="level-1">
<li class="item-1">1</li>
<li class="item-2">2</li>
<li class="item-3">3</li>
</ul>
<ul class="level-1">
<li class="item-1">1</li>
<li class="item-2">2</li>
<li class="item-3">3</li>
</ul>
</div>
<div class="div">
<ul class="level-1">
<li class="item-1">1</li>
<li class="item-2">2</li>
<li class="item-3">3</li>
</ul>
<ul class="level-1">
<li class="item-1">1</li>
<li class="item-2">2</li>
<li class="item-3">3</li>
</ul>
</div>
两个DIV中各有两个UL,让每个后面的UL变色,用children()怎么实现?
$("div").children("ul:last-child").css("border","1px solid red")
jQuery基础(二)—DOM篇
114014 学习 · 590 问题
相似问题