【发布时间】:2011-10-07 13:17:54
【问题描述】:
假设你有一个这样的阴影混合:
@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:
@mixin box-shadow($offset, $blur)
{
@include box-shadow($offset, $blur, #999);
}
或者我必须为 mixins 使用不同的名称吗?
【问题讨论】:
-
仅作为提示,在 sass 中管理供应商前缀很困难,Web 浏览器不断更新,很难维护我们的代码以使其在每次更新时都能正常运行,因此我建议使用 autoprefixer
标签: sass