一行:
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
多行:
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; // 想要几行这里写相应数字即可
-webkit-box-orient: vertical;
有用点赞,收藏哦~~你是最棒的兄die