From 7d6327fb71159c9c7da4b7703c5f65cc08e24fd4 Mon Sep 17 00:00:00 2001 From: Ge Hao Date: Tue, 6 Dec 2016 15:18:40 +0800 Subject: [PATCH] =?UTF-8?q?category=20item-block=20=E4=BD=BF=E7=94=A8=20fl?= =?UTF-8?q?ex=20=E6=A0=B7=E5=BC=8F=EF=BC=8C=E8=AE=A9=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E5=9B=BA=E5=AE=9A=E5=9C=A8=E5=BA=95=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/category/category.wxss | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pages/category/category.wxss b/pages/category/category.wxss index 021fa96..a092d6b 100644 --- a/pages/category/category.wxss +++ b/pages/category/category.wxss @@ -2,6 +2,7 @@ display: flex; flex-wrap: wrap; width: 100%; + margin-bottom: 100rpx; } .item { @@ -11,31 +12,29 @@ } .item-block { - display: block; + display: flex; + flex-direction: column; + justify-content: space-between; border-right: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1; - padding: 15rpx 15rpx 15rpx; - min-height: 485rpx; + padding: 15rpx 15rpx 20rpx; + min-height: 500rpx; } -.item image { +.item-block image { width: 100%; height: 335rpx; - margin-bottom: 20rpx; } -.item .first-line { - font-size: 25rpx; - line-height:30rpx; - margin-bottom: 20rpx; +.item-block .first-line { + font-size: 27rpx; + line-height:34rpx; text-align: center; } -.item .second-line { - display: flex; - flex-direction: row; - justify-content: center; +.item-block .second-line { color: red; + text-align: center; } .offline-notice {