mixin(公共样式定义)
minxin公用样式
src/scss/_mixin.scss
//宽高
@mixin wh($width, $height) {
width: $width;
height: $height;
display: block;
}
//超出一行变成...
@mixin ellipsis() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: norm
原创
2020-06-27 13:59:02 ·
1459 阅读 ·
0 评论