From f3103870954b9de23a034281888782d1fdd5ed20 Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Wed, 22 Dec 2021 11:47:24 +0800 Subject: [PATCH] lee --- css/style.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index ec74ef4..0805706 100644 --- a/css/style.css +++ b/css/style.css @@ -409,16 +409,17 @@ } .index-product .product-list .product-items li.active{ display: flex; - justify-content: space-between; + justify-content: flex-start; } .index-product .product-list .product-item{ width: 32%; + margin-right: 3%; } .index-product .product-list .product-item>a{ display: block; } -.index-product .product-list .product-item:first-child{ - margin-left: 0; +.index-product .product-list .product-item:nth-of-type(3n){ + margin-right: 0; } .index-product .product-list .product-item .img{ display: block; @@ -445,6 +446,7 @@ opacity: .5; white-space: nowrap; width: 100%; + height: 28px; overflow: hidden; text-overflow:ellipsis; }