.list th:not(.foo) {
/* some rules */
}
如何申请这多个类?
.list th:not(.foo), .list th:not(.bar) {
/* some rules */
}
上面的CSS不会当然做到这一点,我需要的是这样的伪:
.list th:not(.foo and .bar)
是否有可能在CSS以及如何?
.list th:not(.foo) {
/* some rules */
}
如何申请这多个类?
.list th:not(.foo), .list th:not(.bar) {
/* some rules */
}
上面的CSS不会当然做到这一点,我需要的是这样的伪:
.list th:not(.foo and .bar)
是否有可能在CSS以及如何?
用逗号分隔类的名字可以得到你想要的
.list th:not(.class1, .class2)
4票赞成这个问题?首先它是http://stackoverflow.com/questions/5684160/can-i-have-multiple-not-selectors的副本,其次是这个问题的答案可以发现veeeery很容易在谷歌上甚至在这里在stackoverflow上。 –
而且?我正在寻找很多,但没有发现任何东西 – Legionar
我的问题不是关于多个不选择器,那是我不知道 – Legionar