单行溢出 和多行溢出

/*单行溢出*/
.one_txt_cut {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.txt_cut {
    display: -webkit-box;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
//英文排版
.word{
word-break: break-all;
word-wrap: break-word;

}

// 溢出文本省略号
@mixin ellipsis($line, $important: false) {
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
@if ($important) {
-webkit-line-clamp: $line !important;
} @else {
-webkit-line-clamp: $line;
}
}

// 溢出文本省略号
@mixin ellipsis-inline($line) {
display: -webkit-inline-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: $line;
-webkit-box-orient: vertical;
}
原文地址:https://www.cnblogs.com/smzd/p/8491583.html