:nth-child()伪类选择器
来源:互联网 发布:淘宝服装店铺文案 编辑:程序博客网 时间:2024/04/30 11:44
用法:
ul li:nth-child(3n+1){
color:red;
}其中:nth-child(index)括号里的值可以odd、even以及具体的下标,同时也可以是数学表达式,比如3n+1,n+3等。
在这里注意的是它针对的是同一级别的元素标签,就是共同拥有同一个父亲。
0 0
- :nth-child()伪类选择器
- CSS3伪类选择器:nth-child()
- CSS3伪类选择器:nth-child()
- CSS3 :nth-child()伪类选择器
- CSS3伪类选择器:nth-child()
- CSS3 :nth-child()伪类选择器
- CSS3 :nth-child()伪类选择器
- CSS3 伪类选择器 nth-child()说明
- CSS3 :nth-child()伪类选择器
- CSS3 :nth-child()伪类选择器
- CSS3伪类选择器:nth-child()
- web CSS3伪类选择器 :nth-child()
- CSS3:nth-child()伪类选择器…
- CSS3 :nth-child()伪类选择器
- css3:nth-child()伪类选择器
- CSS3选择器之:nth-child()伪类选择器详解
- [转]CSS3 :nth-child()伪类选择器
- 【CSS3】结构性伪类选择器—nth-child(n)
- java接入支付宝手机网站支付
- Linux netstat命令详解
- java学习第五天
- iOS支付宝金额跳动的效果
- PAT-A1031
- :nth-child()伪类选择器
- 修改nginx运行端口
- ACM前奏模板
- 给程序员最好的18个忠告!
- 微信网页开发--分享接口
- PAT-A1032
- PAT-A1034
- 基于JQuery的井字过三关游戏(玩家与AI对战)
- Central Processing Unit及集成电路