我遇到了一个很大的问题,因为我需要禁止样式某些输入类型。我原来有这样的代码:
.registration_form_right input:not([type="radio"){ //Nah.}
但我不想样式化复选框。
我尝试过:
.registration_form_right input:not([type="radio" && type="checkbox"])
.registration_form_right input:not([type="radio" && "checkbox"])
.registration_form_right input:not([type="radio") && .registration_form_right input:not(type="checkbox"])
如何使用 &&
?我接下来需要用到 ||
,而且我认为用法会相同。
更新:
我仍然不知道如何正确使用 ||
和 &&
。我在 W3 文档中找不到任何相关信息。