单行溢出隐藏:
width:300px;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
多行文本溢出隐藏:
display: -webkit-box;
display: -moz-box;
white-space: pre-wrap;
word-wrap: break-word; //允许长单词或 URL 地址换行到下一行。
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; //显示行数
overflow: hidden;