我有一个<ul> <li>
结构,我想做的是
.div ul:last-child li:last-child {border-bottom:1px etc}
,
所以它会<li>
从最后一个中选择最后一个<ul>
。
<div id="accord_wrapper">
<div class="accordionButton"></div>
<div class="accordionContent">
<ul>
<li><a href="http://www.google.com">one</a></li>
<li><a href="http://www.yahoo.com">two</a></li>
</ul>
</div>
<div class="accordionButton">Button 2 Content</div>
<div class="accordionContent"><ul>
<li><a href="http://www.google.com">one</a></li>
<li><a href="http://www.yahoo.com">two</a></li>
</ul></div>
<div class="accordionButton">Button 3 Content</div>
<div class="accordionContent"><ul>
<li><a href="http://www.google.com">one</a></li>
<li><a href="http://www.yahh.com">two</a></li>
</ul></div>
<div class="accordionButton">Button 4 Content</div>
<div class="accordionContent"><ul>
<li><a href="http://www.google.com">one</a></li>
<li><a href="http://www.stackoverflow.com">two</a></li>
</ul></div>
</div>