use*_*455 0 html css css-selectors
我和n孩子有一个div 。我需要选择第二个元素,之后每三个元素,如下所示:
n
2, 5, 8, 11, 14, etc.
我在想这是类似于div.someclass:nth-child(2n+2).
div.someclass:nth-child(2n+2)
Eri*_*ger 5
您可以使用 :nth-child(3n+2)
:nth-child(3n+2)
基本上 2 是您想要开始的地方,然后每次添加 3。
这是一个带有您示例的JSFiddle。
归档时间:
11 年,6 月 前
查看次数:
1874 次
最近记录:
11 年,3 月 前