文章详情页
css3 - nth-child(n) 和 nth-child(n+1)是不是等价的?
浏览:191日期:2023-07-24 09:27:37
问题描述
Brian P.Hogan 著的 HTML5 与 CSS3 实例教程里第61页里有这么一段:
如果打算选择表格的所有行,我们可以这么做。table tr:nth:child(n),不使用倍数,也不需要偏移量。然而,如果这时候我们想获取除第一行之外的所有行,这种情况下将使用带偏移量的选择器,table tr:nth-child(n+2)。
如果这句话没问题,那么 table tr:nth-child(n+1) 不就是获取除第零行之外的所有行,也即 nth-child(n) 和 nth-child(n+1) 等价?
问题解答
回答1:表达的什么,nth-child是从1开始算起的
标签:
CSS
相关文章:
1. boot2docker无法启动2. docker-compose中volumes的问题3. docker容器呢SSH为什么连不通呢?4. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””5. java - SSH框架中写分页时service层中不能注入分页类6. docker安装后出现Cannot connect to the Docker daemon.7. node.js - antdesign怎么集合react-redux对input控件进行初始化赋值8. 关于docker下的nginx压力测试9. nignx - docker内nginx 80端口被占用10. 老师,按tab键不起作用怎么回事
排行榜

网公网安备