1、单行溢出
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 90%;
2、多行溢出
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
1、单行溢出
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 90%;
2、多行溢出
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
转载于:https://www.cnblogs.com/zhaogaojian/p/10938118.html