From c602266429b709095457adf3d83a5e351a37078f Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Tue, 21 Dec 2021 09:05:39 +0800 Subject: [PATCH] lee --- css/style.css | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/css/style.css b/css/style.css index 8d2b4a3..3024253 100644 --- a/css/style.css +++ b/css/style.css @@ -2430,13 +2430,11 @@ padding: 0 4%; font-size: 12px; line-height: 40px; - display: -webkit-box; - /* 用省略号代替 */ - text-overflow: ellipsis; - -webkit-box-orient: vertical; - word-break: break-all; - -webkit-line-clamp: 1; + display: inline-block; + white-space: nowrap; + width: 100%; overflow: hidden; + text-overflow:ellipsis; } .pull-position .left img{ height: 12px; @@ -2581,10 +2579,16 @@ .product-txt h3, .product-detail-txt h3{ font-size: 22px; color: #007EC0; + display: inline-block; + white-space: nowrap; + width: 100%; + overflow: hidden; + text-overflow:ellipsis; } .product-txt h4, .product-detail-txt h4{ font-size: 22px; color: #E73F7C; + display: -webkit-box;-webkit-line-clamp: 2;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical; } .product-txt em, .product-detail-txt em{ width: 220px;