Not CSS selectors

后端 未结 8 2020
礼貌的吻别
礼貌的吻别 2020-11-28 11:05

Is there some kind of \"not\" CSS selector?

For example when I write the following line in my CSS, all input fields inside an tag with class classname will

8条回答
  •  不知归路
    2020-11-28 11:32

    Note that the negation pseudo class is in the Selectors Level 3 Recommendation and works in recent versions of Firefox, Chrome and Safari (at least). Sample code below.

    
    
    Negation pseudo class
    
    
    
        

提交回复
热议问题