选择器
2023-09-22 本文已影响0人
xueyueshuai
li:first-child{color:red}
li:last-child{color:red}
li:nth-child(3){color:red}
li:nth-child(2n){color:red}
li:nth-child(2n+1){color:red}
li:first-child{color:red}
li:last-child{color:red}
li:nth-child(3){color:red}
li:nth-child(2n){color:red}
li:nth-child(2n+1){color:red}