CSS3 结构伪类选择器(全)

CSS3 结构伪类选择器 1.结构伪类选择器 😃 结构伪类可以根据文档结构关系来匹配特定的元素。结构伪类主要包括一下几种: 命令 注释 :first-child 匹配第一个子元素 :last-child 匹配最后一子元素 :nth-child() 按正序匹配特定子元素 :nth-last-child() 按倒序匹配特定子元素 :nth-of-type() 在同类型中匹配特定子元素 :nth-la
相关文章
相关标签/搜索