.scrollItem text {
font-size: 26rpx;
/* 单行文本溢出隐藏 省略号代替 */
/*display: block;*/
/*white-space: nowrap;*/
/*overflow: hidden;*/
/*text-overflow: ellipsis;*/
/* 多行文本溢出隐藏 省略号代替*/
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical; /*设置对其模式*/
-webkit-line-clamp: 2; /*设置多行的行数*/
}
小程序文本两行显示省略号
猜你喜欢
转载自blog.csdn.net/qq_15009739/article/details/112147590
今日推荐
周排行