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.
我必须更改整个页面上所有内容的样式,除了一大堆豁免元素。显然 CSSnot()不支持这样的逗号语法::not(p, div). 我是否必须像下面这样列出一个巨大的列表,为每个列表重复样式,还是有更快的解决方案?
not()
:not(p, div)
:not(p){xyz} :not(div){xyz} :not(a){xyz}
尝试
:not(p):not(div):not(a){xyz}
http://jsfiddle.net/mowglisanu/MA3nM/