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.
假设我有这样的样式定义:
.a.b { ... } .a.b.c { ... }
有没有办法.a.b使用 SASS/SCSS 避免部分重复?
.a.b
.a.b.c将规则嵌套在其中并用组合.a.b器替换第一部分:&
.a.b.c
&
.a.b { ... &.c { ... } }