這樣不就不冗余了嗎
//welcome to imooc learn Sass
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
@extend .btn;
margin-bottom: 5px;
}
.btn{
@include border-radius;
}
//welcome to imooc learn Sass
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
@extend .btn;
margin-bottom: 5px;
}
.btn{
@include border-radius;
}
2017-01-12
這樣不就不冗余了嗎
//welcome to imooc learn Sass
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
@extend .btn;
margin-bottom: 5px;
}
.btn{
@include border-radius;
}
//welcome to imooc learn Sass
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
@extend .btn;
margin-bottom: 5px;
}
.btn{
@include border-radius;
}
2017-01-12
這樣不就不冗余了嗎
//welcome to imooc learn Sass
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
@extend .btn;
margin-bottom: 5px;
}
.btn{
@include border-radius;
}
//welcome to imooc learn Sass
@mixin border-radius{
-webkit-border-radius: 3px;
border-radius: 3px;
}
.box {
@extend .btn;
margin-bottom: 5px;
}
.btn{
@include border-radius;
}
2017-01-12
我好像發(fā)現(xiàn)了八阿哥,$con: "hehe" + "" + "haha";
.box:before {
content: #{$con} ;
},
在右邊顯示
@charset "UTF-8";
.box:before {
content: hehehaha; }
hehehaha中間的空格沒了。
.box:before {
content: #{$con} ;
},
在右邊顯示
@charset "UTF-8";
.box:before {
content: hehehaha; }
hehehaha中間的空格沒了。
2017-01-07
nav a 和header nav a不一定是同一個DOM元素,可能在頭部的nav中需要使用header nav a中的樣式,在其他地方使用nav a中的樣式
2017-01-02