导入其它scss文件
@import "URL"
在scss文件中有一个规定是 只要scss文件以 下划线开头的就不会编译成css文件
_base.scss
scss函数的封装
@mixin username ($x,$y) {
background-image: url("...");
background-size: 200px 200px;
background-repeat: no-repeat;
background-position: $x $y;
}
调用封装的sass函数
@include username(-20px,-20px);