-webkit-box-orient: vertical; 在webpack上失效
-webkit-box-orient: vertical;在webpack上失效,可以使用以下方式解决
.ifc-header-content-comment { text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; /* autoprefixer: off */ -webkit-box-orient: vertical; /* autoprefixer: on */ height: 50px; line-height: 25px; }
或者是
.ifc-header-content-comment {
text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; /* autoprefixer: ignore next */ -webkit-box-orient: vertical; height: 50px; line-height: 25px; }
- 上一篇 »css3流动布局
- 下一篇 »css3多行文本溢出显示省略号…