CSS 每隔4行显示不同样式的表格

想直接写一个简易表格,但是CSS想了好久才记起来
直接上图:

css:
&:nth-child(8n+1), &:nth-child(8n+2), &:nth-child(8n+3), &:nth-child(8n+4)

原文地址:https://www.cnblogs.com/bomdeyada/p/15237500.html