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