Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检索不在具有以'xyz_'开头的类的div内的所有输入类型复选框
如何为上述内容编写 CSS 选择器?
利用div:not([class^="xyz_"]) input[type="checkbox"]{ ... }
div:not([class^="xyz_"]) input[type="checkbox"]{ ... }
请参阅工作示例http://jsfiddle.net/Sz3zY/
*:not(div[class^="xyz_"]) input[type="checkbox"] { ... }