1. 首页
  2. 数据库
  3. 其它
  4. 结构伪类选择器(总结)

结构伪类选择器(总结)

上传者: 2020-12-23 00:25:35上传 PDF文件 33.76KB 热度 18次
什么是结构伪类选择器? 结构伪类选择器是针对HTML的结构进行分类的选择器,特征就是位置 分为三大类 一类 e:first-child e:last-child e:only-child e:nth-child(n/even/odd)隔行换色,列表换色 e:nth-last-child 二类 e:first-of-type e:last-of-type e:only-of-type e:nth-of-type 三类 e:root e:empty e:target e:not 波浪选择器连接符~ 作用:两个css选择器通过波浪线连接起来,但只作用于后一个css选择器,并且必须出现前一个选择器才符
下载地址
用户评论