#cp_sidebar_contents .cp_sb_subform input:not([type=submit] && [type=button]){
height:25px;
}
正如您在上面的代码中看到的,我想选择一个没有两个条件的元素。
如果我只在 not() 函数中放置一个条件,它就可以工作了。
但如何不(两个标准)?
最佳答案
您需要链接 :not
选择器,例如 #cp_sidebar_contents .cp_sb_subform input:not([type=submit]):not([type=button])
关于没有两个条件的 CSS 选择元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34891832/