我在
https://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048这会被称为伪类选择器还是相邻选择器?
阅读一篇文章当你看看在第17节演示中,你得到这个选择:
input[type=radio]:checked + label {
color: blue;
}
第17节涵盖了伪类选择,但这个选择似乎是一个相邻的选择器给我。你会怎么称呼它?
我在
https://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048这会被称为伪类选择器还是相邻选择器?
阅读一篇文章当你看看在第17节演示中,你得到这个选择:
input[type=radio]:checked + label {
color: blue;
}
第17节涵盖了伪类选择,但这个选择似乎是一个相邻的选择器给我。你会怎么称呼它?
的:检查位是伪类选择和+位是相邻选择
我不认为它叫什么,它只是一个伪类(:checked
)和相邻的组合兄弟选择器(+ label
)。 纠正我,如果我错了。