- 单行文字
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
- 多行文字
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: normal !important;
word-wrap: break-word;
多行省略不要配合 height,让它自动撑开。