题解 | #CSS选择器——伪类选择器#
CSS选择器——伪类选择器
https://www.nowcoder.com/practice/d8a08991f6294e98b7b78597483ab2b8
li:nth-child(2){
background-color:rgb(255,0,0)
}
li:last-child{
background-color:rgb(255,0,0)
background-color:rgb(255,0,0)
}
li:last-child{
background-color:rgb(255,0,0)
}
这题涉及到的伪类选择器有 :nth-child() 、:last-child 、:first-child