diff --git a/mall4m/pages/category/category.wxss b/mall4m/pages/category/category.wxss index 5e5bff3..317e009 100644 --- a/mall4m/pages/category/category.wxss +++ b/mall4m/pages/category/category.wxss @@ -201,6 +201,10 @@ page { font-size: 22rpx; color: #999; margin: 10rpx 0 20rpx 0; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + overflow: hidden; } .rightcontent .cont-item .show-item .prod-text-right .prod-text.more { diff --git a/mall4uni/pages/category/category.css b/mall4uni/pages/category/category.css index e63f5c1..4944cfa 100644 --- a/mall4uni/pages/category/category.css +++ b/mall4uni/pages/category/category.css @@ -202,6 +202,10 @@ page { font-size: 22rpx; color: #999; margin: 10rpx 0 20rpx 0; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; + overflow: hidden; } .rightcontent .cont-item .show-item .prod-text-right .prod-text.more {