Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以将多个 Mixin 传递到 sass 中的包含中吗?
例子
@mixin something{ //css declarations } @mixin somethingElse{ //css declarations }
我可以执行以下操作吗
.class{ @include something,somethingElse; }
还是必须
.class{ @include something; @include somethingElse; }
@include使用 scss 语法时,每个 mixin 调用都需要一个。如果您使用的是 sass 语法,那么您可以节省一些击键:
@include
=something //css declarations =somethingElse //css declarations .class +something +somethingElse