From 6d19df1a9fb210c972a9944545de6a0c52cf9982 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 21 Nov 2025 18:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/css/index.css b/css/index.css index 18390e8..f676e65 100644 --- a/css/index.css +++ b/css/index.css @@ -5,16 +5,15 @@ } .banner-cont .swiper-slide { - height: 500px; width: 100%; background: linear-gradient(0, #f7f9fa, #f9fafb); } .banner-cont .swiper-slide .img { /* 保持图片占满宽度,避免拉伸过度 */ - max-height: 100%; - max-width: 100%; width: 100%; + height: auto; + max-width: 100%; } /* 文案区域:固定在左侧,顶部留出一致间距,避免切换时轻微位移 */