Not CSS selectors

后端 未结 8 1980
礼貌的吻别
礼貌的吻别 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:17

    I would do this

    input { /* styles outside of .classname */ }
    .classname input { /* styles inside of .classname, overriding above */ }
    

提交回复
热议问题