@for $i from 1 through 12{
.col-#{$i} {
width: 100/12*$i + "%";
}
}
.col-#{$i} {
width: 100/12*$i + "%";
}
}
2017-09-10
.btn{
text: map-keys($newmap);
text2: map-values($newmap);
link: map-get($newmap,link);
}
编译结果:
.btn {
text: text, link, border, backround, font-size, line-height;
text2: #f36, #f63, #ddd, #fff, 12px, 1.6;
link: #f63;
}
text: map-keys($newmap);
text2: map-values($newmap);
link: map-get($newmap,link);
}
编译结果:
.btn {
text: text, link, border, backround, font-size, line-height;
text2: #f36, #f63, #ddd, #fff, 12px, 1.6;
link: #f63;
}
也没有用到Miscellaneous这个函数啊,给的例子不是if判断吗,还需要Miscellaneous函数干什么???
2017-09-04
其实 opacity 和 alpha 是设置颜色的不透明度的。当其值为0,则完全透明,当其值为 1时,则完全不透明。也就是说,随着值的增加,不透明度会增加。
2017-08-26