How to reuse css class content in another class without copying?

前端 未结 8 1055
北恋
北恋 2021-02-18 14:07

Is it possible to use existing css class as content in another class ?

I mean something like:

Contained in some library:
.class1 { text-indent: 100 }

 I         


        
8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-18 14:35

    The best way would be to redeclare class1 just below your custom css ends and override it with the values that you are looking for. This way, the inherited values, that you cannot change + the values that you need to incorporate, both shall apply.

提交回复
热议问题