让说你有一个像这样的阴影混入:是否有可能在sass中超载mixins?
@mixin box-shadow($offset, $blur, $color)
{
-moz-box-shadow: $offset $offset $blur $color;
-webkit-box-shadow: $offset $offset $blur $color;
box-shadow: $offset $offset $blur $color;
}
是否有可能重载混入的东西,如:
@mixin box-shadow($offset, $blur)
{
@include box-shadow($offset, $blur, #999);
}
还是我必须为混入使用不同的名字呢?
仅作为小费,在管理供应商的前缀sass很难,网页浏览器不断更新,很难保证我们的代码在每次更新时都能正常运行,所以我推荐使用[autoprefixer](http://stackoverflow.com/questions/20150621/sass-mixin-for- animation-keyframe-which-includes-multiple-stages-and-transform-p/20166008#20166008) –