单行文本
//一定写宽度
width:100px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
多行文本
默认编译的时候,会过滤
-webkit-box-orient: vertical;
改变方式,关闭 autoprefixer 然后再开启:用注释就可以做到
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
/* autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */
text-overflow: ellipsis;