不能。Sass无法合并选择器(这可能被认为是不希望的,因为这会改变选择器的顺序)。
您唯一能做的就是这样(或编写2个单独的mixins):
@mixin footer_flush_bottom {
height: 100%;
body {
min-height: 100%;
position: relative;
@content;
}
}
html {
// additional html styles
@include footer_flush_bottom {
// additional body styles
}
}