@import '../../styles/base.less'; .detail-cell { } .cell-title { flex: 1; margin-bottom: 10rpx; } .cell-icon { margin-right: 10rpx; } .cell-end { display: flex; align-items: center; min-width: 100rpx; justify-content: flex-end; } .detail-name { width: 100%; margin: 10rpx 0; font-size: 30rpx; color:#222222; overflow: hidden; //一定要写 text-overflow: ellipsis; //超出省略号 display: -webkit-box; //一定要写 -webkit-line-clamp: 1; //控制行数 -webkit-box-orient: vertical; //一定要写 } .detail-describe { width: 100%; margin: 10rpx 0; min-height: 80rpx; overflow: hidden; //一定要写 text-overflow: ellipsis; //超出省略号 display: -webkit-box; //一定要写 -webkit-line-clamp: 2; //控制行数 -webkit-box-orient: vertical; //一定要写 } .detail-tags { width: 100%; margin:8rpx 0; overflow: hidden; //一定要写 text-overflow: ellipsis; //超出省略号 display: -webkit-box; //一定要写 -webkit-line-clamp: 2; //控制行数 -webkit-box-orient: vertical; //一定要写 } .detail-price-wrapper { display: flex; color: @red; margin-top: 10rpx; .detail-price-text { margin: 0 10rpx 0 0; } .detail-price-num{ font-size: 28rpx; font-weight: 600; } }