Can a CSS class inherit one or more other classes?

前端 未结 30 3226
挽巷
挽巷 2020-11-22 00:01

I feel dumb for having been a web programmer for so long and not knowing the answer to this question, I actually hope it\'s possible and I just didn\'t know about rather tha

30条回答
  •  一整个雨季
    2020-11-22 00:34

    Yes, but not exactly with that syntax.

    .composite,
    .something { display:inline }
    
    .composite,
    .else      { background:red }
    

提交回复
热议问题