【发布时间】:2011-09-26 17:39:16
【问题描述】:
以下 .scss 代码:
@mixin div-base {
width: 100px;
color: red;
}
#data {
@include div-base;
}
将产生:
#data {
width: 100px;
color: red; }
我想做这样的事情:
#data {
@include div-base;
remove or delete: width right here
}
生产:
#data {
color: red;
}
有没有可能按照这些思路做点什么?
【问题讨论】:
-
拥有一个最低限度的基类并将其扩展为
div-base
标签: sass attributes mixins