且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不使用mixin的情况下重用sass中的类?

更新时间:2023-01-15 09:46:53

您要使用@extend .btn;-@extend允许您继承选择器的所有属性,而不必将其定义为mixin.

You want to use @extend .btn; - @extend allows you to inherit all the properties of a selector without having to define it as a mixin.