How to reuse styles?

前端 未结 9 1659
孤城傲影
孤城傲影 2021-02-12 14:36

Back in the past I learned a lot about CSS but now I can\'t remember how to reuse styles.

Example:

I have some tabs with class tab and I can switch

9条回答
  •  半阙折子戏
    2021-02-12 15:33

    You can apply multiple classes to an element. So you can have an element with class = "tab active" and have it contain both specs.

提交回复
热议问题