标签: html css
假设有div的风格和更多的课程 -
div
div, .exceptDiv, .bigDiv { /*style...*/ }
(here its jsFiddle),
我希望保存一个从任何风格中保持清晰的课程 - clearDiv。
clearDiv
我试过了 -
div:not(".clearDiv"), .exceptDiv, .bigDiv { /*style...*/ }
但它没有用。
我正在寻找一种尽可能使用not(...)的解决方案。
not(...)
答案 0 :(得分:2)
正确使用not()!
not()
div:not(".clearDiv")无效,请删除引号:div:not(.clearDiv)
div:not(".clearDiv")
div:not(.clearDiv)
http://jsfiddle.net/v4YDD/4/