Can a CSS class inherit one or more other classes?

前端 未结 30 3218
挽巷
挽巷 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:23

    For those who are not satisfied with the mentioned (excellent) posts, you can use your programming skills to make a variable (PHP or whichever) and have it store the multiple class names.

    That's the best hack I could come up with.

    
    
    
    

    Then apply the global variable to the element you desire rather than the class names themselves

     Le Champion est Ici 
    

提交回复
热议问题