If you want to use nth-child
with modulo k
, just specify:
nth-child(kn)
For example, if you want to specify style for 3, 6, 9, .. elements, just specify (k
= 3), and use:
nth-child(3n)
You can also specify an offset:
nth-child(kn+offset)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…