div:nth-child(3n+1){
background: #f00;
}
div:nth-child(3n+2){
background: #377D22;
}
div:nth-child(3n+3){
background: #002FEB;
}
css 三个样式(背景颜色)一循环
最新推荐文章于 2023-11-18 14:28:12 发布