jQuery -:n -child()或eq()模式可能

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

本文关键字:eq 模式 -child jQuery      更新时间:2023-09-26

我需要选择1,4,7,10,13,16等

http://jsfiddle.net/caRxA/

我相信:nth-child(3n+1)会做的。

正如Pekka在jQuery文档中提到的。

可以用表示n的表达式调用:nth-child

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