选择器组 A,B 匹配A或B
A,B{
color:red
;
}
后代选择器 A B 匹配A的后代B
A B{
color:red
;
}
子选择器 A>B 匹配A的一代子节点B
A>B{
color:red
;
}
相邻兄弟选择器 A+B 匹配A的下一个紧邻的兄弟节点B
A+B{
color:red
;
}
通用兄弟选择器 A之后的全部兄弟节点B
A~B{
color:red
;
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-54146.html