第一种方式:多行、单行都可
width:100upx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; //可展示几行
-webkit-box-orient: vertical;
第二种方式:单行
width:100upx;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;