多行文本省略号如下写,会报Warning:Autoprefixer applies control comment to whole block, not to next rules.
.wrap{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
/* autoprefixer: off */
-webkit-box-orient: vertical;
/* autoprefixer: on */
}
此时需修改成
/* autoprefixer: ignore next */
-webkit-box-orient: vertical;
意思是让单行(而不是块)的规则需要用 autoprefixer: ignore next