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

想直接写一个简易表格,但是CSS想了好久才记起来
直接上图:
CSS 每隔4行显示不同样式的表格
css:
&:nth-child(8n+1), &:nth-child(8n+2), &:nth-child(8n+3), &:nth-child(8n+4)