From a5e841edeb90e8b3306a395d40fd4953d092ead6 Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期五, 19 九月 2025 17:43:43 +0800 Subject: [PATCH] 优化 --- mobile/css/index.css | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/mobile/css/index.css b/mobile/css/index.css index 7c2be4d..0613c22 100644 --- a/mobile/css/index.css +++ b/mobile/css/index.css @@ -4,14 +4,27 @@ .banner { width: 100%; height: 211px; +} +.swiper-container2 { + width: 100%; + height: 211px; +} +.swiper-slide1 { + width: 100%; padding: 0 30px; box-sizing: border-box; - background-image: url("../images/home_banner@2x.png"); - background-repeat: no-repeat; - background-size: 100% 100%; display: flex; flex-direction: column; justify-content: center; + position: relative; +} +.swiper-slide1 img { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; } .banner_title { font-weight: bold; -- Gitblit v1.9.3