一行溢出不显示
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
多行溢出不显示
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
需要添加注释,来解决这个问题,注意css和scss的方法是不一样的!!!
在scss中
/*! autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */
在css中
/* autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */