单号文本写法:
width:100px;//定宽
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
多行文本写法:
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2; //表示要展示的行数
单号文本写法:
width:100px;//定宽
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
多行文本写法:
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2; //表示要展示的行数
转载于:https://www.cnblogs.com/javenlee/p/6994311.html