结构化伪类选择器

css结构化伪类选择器有哪些
JavaScript

css结构化伪类选择器有哪些

106 0

选择器有::root、:not、:only-child、:first-child、:last-child、:empty:target、:nth-child(n)、nth-last-child(n)、:nth-of-type(n)等。本教程操作环境:windows7系统、CSS3&&HTML5版、Dell G3电脑。:root选择器 :匹配文档根元素:not 选择器:首先得向该结构元素需要排除的子结构元素设置样式才有效果Example::only-child:first-child、:last-child: