浏览代码

优化分类商品卖点显示

Eratosici 4 年之前
父节点
当前提交
9b4bea4f50
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      mall4m/pages/category/category.wxss
  2. 4 0
      mall4uni/pages/category/category.css

+ 4 - 0
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 {

+ 4 - 0
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 {