From 27505e238a8c365e2a5fda36145f6178250fecd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=AD=A6=E6=88=90?= <1274337408@qq.com> Date: Fri, 31 Jul 2026 16:56:50 +0800 Subject: [PATCH] =?UTF-8?q?web=E7=AB=AF-=E6=96=B0=E5=A2=9E=E9=A3=8E?= =?UTF-8?q?=E9=87=87=E5=A2=99=E6=A8=A1=E5=9D=97(=E5=B7=A5=E4=BC=9A?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=BC=A0=E6=92=AD=E4=B8=8E=E6=96=87=E5=8C=96?= =?UTF-8?q?=E5=B1=95=E7=A4=BA):=20=E9=A3=8E=E9=87=87=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/platform/zhgh/spread/display/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/views/platform/zhgh/spread/display/index.html b/src/main/resources/views/platform/zhgh/spread/display/index.html index c5941766..971e1295 100644 --- a/src/main/resources/views/platform/zhgh/spread/display/index.html +++ b/src/main/resources/views/platform/zhgh/spread/display/index.html @@ -11,12 +11,12 @@ layout("/layouts/platform.html"){ .spread-brand-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #c0141a; font-size: 24px; border-radius: 50%; background: #fff0f0; } .spread-brand-title { font-family: "Microsoft YaHei", serif; font-size: 24px; font-weight: 700; letter-spacing: 3px; } .carousel-bg-text { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,.04); font-size: 170px; font-weight: 900; letter-spacing: 24px; pointer-events: none; user-select: none; } - .hero-slider { width: calc(100% - 32px); max-width: none; height: 380px; margin: 0 auto; } - .hero-slider .el-carousel, .hero-slider .el-carousel__container { height: 380px; } + .hero-slider { width: calc(100% - 32px); max-width: none; min-height: 380px; height: auto; aspect-ratio: 32 / 9; margin: 0 auto; } + .hero-slider .el-carousel, .hero-slider .el-carousel__container { height: 100%; } .hero-slider .el-carousel__arrow { width: 42px; height: 42px; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(44,62,80,.42); backdrop-filter: blur(4px); } - .hero-slider .el-carousel__item--card { overflow: visible; } + .hero-slider .el-carousel__item--card { overflow: visible; display: flex; align-items: center; justify-content: center; } .hero-slider .el-carousel__mask { opacity: 0; background: transparent; } - .slider-item { width: 97%; height: 95%; margin: 0 auto; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; border: 8px solid #fff; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18), 0 2px 5px rgba(0,0,0,.12); } + .slider-item { width: 97%; height: auto; aspect-ratio: 16 / 9; margin: 0 auto; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; border: 8px solid #fff; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18), 0 2px 5px rgba(0,0,0,.12); } .slider-item img { width: auto; height: auto; max-width: 100%; max-height: 100%; display: block; flex: 0 0 auto; object-fit: contain !important; object-position: center; background: #fff; } .slider-caption { min-height: 25%; padding: 10px 18px 9px; position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; box-sizing: border-box; color: #fff; background: linear-gradient(to bottom, rgba(82,82,82,.30) 0%, rgba(52,52,52,.52) 45%, rgba(24,24,24,.78) 100%); } .slider-caption-line { width: 100%; } @@ -80,7 +80,7 @@ layout("/layouts/platform.html"){