css实现文字多余显示省略号
只显示一行文字
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
显示多行文字
word-break:break-all;
display:-webkit-box;
-webkit-line-clamp:2;/*控制行数*/
-webkit-box-orient:vertical;
overflow:hidden;
只显示一行文字
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
显示多行文字
word-break:break-all;
display:-webkit-box;
-webkit-line-clamp:2;/*控制行数*/
-webkit-box-orient:vertical;
overflow:hidden;