- 原因webpack打包后-webkit-box-orient被移除,所以导致失效。
- 解决方案一:在原有的CSS添加以下属性
display: -webkit-box;
-webkit-line-clamp: 3;
overflow: hidden;
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */