h5 的 -webkit-box-orient 设置后不会在浏览器中生效
-
rt。用 css 写一个文本超出指定行显示省略号的 View。
css 设置如下... &__desc { display: -webkit-box; word-break: break-all; margin-bottom: 36px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis; }
但是在浏览器中查看结果时发现没有设置的
-webkit-box-orient
属性
-
@1432914819_m 有两种方法可以试试
/* autoprefixer: ignore next */ -webkit-box-orient: vertical;
或者
/* autoprefixer: off */ -webkit-box-orient: vertical; /* autoprefixer: on */
相关资料可以查看: https://github.com/postcss/autoprefixer/issues/776
-
@Taro-小助手-honly 生效了,谢谢!!!