@Wond-Z
2017-01-11T10:38:32.000000Z
字数 602
阅读 583
前端开发
css
.demo01 li:nth-child(2){background:#090}
.demo01 li:nth-child(n+4){background:#090}
.demo01 li:nth-child(-n+4){background:#090}
.demo01 li:nth-child(2n){background:#090}
.demo01 li:nth-child(2n-1){background:#090}
.demo01 li:nth-child(3n+1){background:#090}
.demo01 li:last-child{background:#090}
.demo01 li:nth-last-child(3){background:#090}