/**
* 单行或多行显示隐藏
*/
@mixin text-ellipsis($lines: 1) {
@if $lines==1 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} @else {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: $lines;
-webkit-box-orient: vertical;
}
}
/**
* 生成一个圆
*/
@mixin round($size) {`在这里插入代码片
width: $size;
height: $size;
border-radius: 50%;
}
mixin
最新推荐文章于 2024-07-22 15:13:59 发布