最近项目遇到一个问题:
处理多行文本溢出的样式,但是在webpack编译之后,-webkit-box-orient:vertical 这个样式丢失了
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
解决方法:
/*!autoprefixer:off*/
-webkit-box-orient: vertical;
/*autoprefixer:on*/