Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:继续加油
/ 结构伪类 用来匹配子元素,给一个查询起点/
.list > li:nth-of-type(1){
color: rgb(49, 20, 237)
;
}
.list >:nth-of-type(5){
background-color: aqua;
}
.list > li:first-of-type {
background-color: blueviolet;
}
/ .list > li:last-of-type {
background-color: aqua;
} /
/ a系数 n参数 b偏移量,从0开始/
.list > :nth-of-type(2n+2) {
background-color: bisque;
}