【发布时间】:2013-10-18 18:43:46
【问题描述】:
我有以下html结构:
<div class="decorator">
<div class="EC_MyICHP_Item">
<div class="text">
<h3><a target="_blank" title="" href="#"></a></h3>
text here text here text here text here text here text here
</div>
</div>
<div class="EC_MyICHP_Item">
<div class="text">
<h3><a target="_blank" title="" href="#"></a></h3>
text here text here text here text here text here text here
</div>
</div>
<div class="EC_MyICHP_Item">
<div class="text">
<h3><a target="_blank" title="" href="#"></a></h3>
text here text here text here text here text here text here
</div>
</div>
<div class="readmore"><a></a></div>
</div>
我试图通过使用 last-child 来选择 LAST EC_MyICHP_Item,但徒劳无功。 (CSS和jQuery)你能帮我吗?
谢谢。
【问题讨论】:
-
我在代码中犯了一个错误:我刚刚添加了最后一个 div。我相信这是干扰,虽然它没有相同的类名。
标签: css jquery-selectors css-selectors