欢迎来到牛牛题库网 牛牛题库官网
logo
全部科目 > 大学试题 > 计算机科学 > 网页设计与制作

单项选择题

以下()将奇数个li元素字体设置为红色。

A.li:nth-child(2n){color:red;}
B.li:nth-child(n+1){color:red;}
C.li:nth-child(even){color:red;}
D.li:nth-child(odd){color:red;}

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题