如果變量已經被賦值,就不會使用默認值 !default。
不然很容易被誤解,因為我們都知道樣式是會被覆蓋的,后面的覆蓋前面的,如果將默認值 !default寫在后面我們會認為,樣式表會使用后面的默認值 !default。
不然很容易被誤解,因為我們都知道樣式是會被覆蓋的,后面的覆蓋前面的,如果將默認值 !default寫在后面我們會認為,樣式表會使用后面的默認值 !default。
2017-07-13
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
margin-bottom: 5px;
}
.btn ,.box{
@include border-radius;
}
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
margin-bottom: 5px;
}
.btn ,.box{
@include border-radius;
}
2017-06-27