Can a CSS class inherit one or more other classes?

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

    CSS doesn't really do what you're asking. If you want to write rules with that composite idea in mind, you may want to check out compass. It's a stylesheet framework which looks similar to the already mentioned Less.

    It lets you do mixins and all that good business.

提交回复
热议问题