簡體   English   中英

jQuery-:nth-​​child()或eq()模式可能嗎?

[英]jQuery - :nth-child() or eq() pattern possible?

我需要選擇1st,4th,7th,10th,13th,16th等

http://jsfiddle.net/caRxA/

我確定:nth-child(3n+1)可以。

正如Pekka在jQuery文檔中指出的那樣。

您可以致電:nth-child與表達方面n

$('.my-set:nth-child(3n+1)');

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM