占位符一个罗盘扩展,它生成将适用于所有断点的占位符。在SASS中使用占位符的当前限制是无法跨指令扩展。Placeholderize与以生成一组基于断点命名空间的占位符。还有一个选项可以合并一个。例如这个... $sm-screen = 40rem; $md-screen = 64rem; $breakpoints : ( sm : $sm-screen , md : $md-screen ); @include placeholderize (bg - red) { background-color : red ; } @include placeholderize (bg - green) { background-color : green ; } @include placeholderize (bg - blue) { background-color : blue ; }