From 0f2a45e103b45840c9667c7b1de6a0b9e09e7406 Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Tue, 21 Dec 2021 16:52:56 +0800 Subject: [PATCH] lee --- css/style.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index 6d86321..c0d424e 100644 --- a/css/style.css +++ b/css/style.css @@ -412,7 +412,7 @@ justify-content: space-between; } .index-product .product-list .product-item{ - width: 33%; + width: 32%; } .index-product .product-list .product-item>a{ display: block; @@ -443,6 +443,10 @@ font-size: 14px; line-height: 2; opacity: .5; + white-space: nowrap; + width: 100%; + overflow: hidden; + text-overflow:ellipsis; } /* 产品展示 end */ @@ -1090,10 +1094,11 @@ } .product-txt p, .product-detail-txt p{ + width: 90%; font-size: 15px; line-height: 2; color: #585858; - display: -webkit-box;-webkit-line-clamp: 2;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical; + display: -webkit-box;-webkit-line-clamp: 4;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical; } .product-txt em, .product-detail-txt em{