题解 | #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)
            }
这题涉及到的伪类选择器有 :nth-child() 、:last-child 、:first-child
全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务