From c0d2410ea67277a34554ba9d77e400c661daf696 Mon Sep 17 00:00:00 2001 From: linbin <495561397@qq.com> Date: Sat, 23 Aug 2025 22:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E8=BF=B0:=20=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E8=8F=9C=E5=B8=82=E5=9C=BA=E5=8D=A1=E7=89=87=E8=BD=AE=E6=92=AD?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - **样式简化**: - 调整了轮播指示器的位置和样式,使其居中显示并增加了边框。 - 移除了 `market-slide` 的绝对定位和过渡效果,简化了轮播图的实现方式。 - **HTML结构调整**: - 将轮播指示器移入 `market-image` 内部,使其与图片关联更紧密。 - 删除了第二个轮播页面,暂时只保留一个页面。 - **移除JavaScript**: - 删除了所有与轮播图相关的JavaScript代码,包括自动播放和触摸滑动功能,暂时取消了轮播功能。 --- 用户端APP/电商首页.html | 117 +++++----------------------------------- 1 file changed, 14 insertions(+), 103 deletions(-) diff --git a/用户端APP/电商首页.html b/用户端APP/电商首页.html index 10158fe..e9895d9 100644 --- a/用户端APP/电商首页.html +++ b/用户端APP/电商首页.html @@ -293,21 +293,12 @@ } .market-slide { - position: absolute; - top: 0; - left: 0; width: 100%; height: 100%; - opacity: 0; - transition: opacity 0.5s ease-in-out; display: flex; flex-direction: column; } - .market-slide.active { - opacity: 1; - } - .market-image { width: 100%; height: 150px; @@ -416,19 +407,20 @@ /* 轮播指示器 */ .carousel-indicators { position: absolute; - bottom: 50px; - right: 15px; + bottom: 20px; + left: 50%; + transform: translateX(-50%); display: flex; - gap: 5px; + gap: 6px; + z-index: 10; } .indicator { - width: 6px; - height: 6px; + width: 8px; + height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); - cursor: pointer; - transition: background 0.3s; + border: 1px solid rgba(255,255,255,0.8); } .indicator.active { @@ -743,10 +735,15 @@