css 选择最后一行

369 阅读1分钟

image.png nth-child(4n+1) 选择第一列, nth-last-child(-n+4) 选择最后4个,符合条件的就是最后一行第一个, 然后 ~ 选择后边的item

image.png