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%; } /* 文案区域:固定在左侧,顶部留出一致间距,避免切换时轻微位移 */