0
我設計一個網站,有以下時尚的div:如何使用jQuery將樣式添加到div中的第3,第6等(n * 3)元素?
<div id="showcase">
<div class="project"> <!-- this is the first row -->
<div class="project"> <!-- this is the first row -->
<div class="project"> <!-- this is the first row -->
<div class="project"> <!-- this is the second row -->
<div class="project"> <!-- this is the second row -->
<div class="project"> <!-- this is the second row -->
<div class="project"> <!-- this is the third row -->
<div class="project"> <!-- this is the third row -->
<div class="project"> <!-- this is the third row -->
</div>
</div>
我想刪除右邊距爲一排的「最後」的div(每排有3周的div)。
任何建議來完成此?
謝謝,那正是我需要的。 – alexchenco