文字超出三行显示省略号:
<style type="text/css">
div{
width: 100px;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: -webkit-ellipsis-lastline;
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
}
</style>
<div>你好,世界!你好,世界!你好,世界!你好,世界!你好,世界!</div>