Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想设置一个列 css 样式,但我怎样才能得到每第三列?
网格仅包含一行: grid http://imageshack.us/a/img703/598/kksm.png
我发现可以查看某些单元格内容,我还找到了一种循环行索引的方法,但不能循环列!
是的你可以!通过使用伪类:nth-child(3n)。
:nth-child(3n)
检查这个演示。