多行省略
-webkit-line-clamp: 4;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
vue打包后-webkit-box-orient: vertical;
不起作用;
需要加上
/*! autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */
但此时会报Warning:Autoprefixer applies control comment to whole block, not to next rules.
意思是让单行(而不是块)的规则需要用 autoprefixer: ignore next
/* autoprefixer: ignore next */
-webkit-box-orient: vertical;