From 3e94349dac10b892b70cd71dedaab970378b8386 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Thu, 19 Mar 2026 20:36:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Logo=20=E7=82=B9=E5=87=BB=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E4=BF=AE=E6=AD=A3=20-=20z-index=20=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E5=88=B0=20100=20+=20img=20pointer-events:none?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 核心修复: - z-index: 20 → 100, 确保不被页面内容遮挡 - img 加 display:block 消除行内间隙 - img 加 pointer-events:none 让点击事件穿透到父级 a 标签 - a 标签加 cursor:pointer 显式指定 --- clientarea/hgcloud/css/forget.css | 12 +++++------- clientarea/hgcloud/css/login.css | 10 ++++------ clientarea/hgcloud/css/regist.css | 10 ++++------ 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/clientarea/hgcloud/css/forget.css b/clientarea/hgcloud/css/forget.css index 24387b9..66acaf5 100644 --- a/clientarea/hgcloud/css/forget.css +++ b/clientarea/hgcloud/css/forget.css @@ -31,28 +31,26 @@ position: fixed; top: 16px; left: 20px; - z-index: 20; + z-index: 100; display: flex; align-items: center; text-decoration: none; padding: 12px 14px; border-radius: 8px; transition: all 0.2s; + cursor: pointer; } .back-home-link:hover { - opacity: 0.8; + background: rgba(255, 255, 255, 0.05); } .back-home-logo { height: 28px; width: auto; opacity: 1; - transition: opacity 0.2s; -} - -.back-home-link:hover .back-home-logo { - opacity: 1; + display: block; + pointer-events: none; } /* ---- 容器 ---- */ diff --git a/clientarea/hgcloud/css/login.css b/clientarea/hgcloud/css/login.css index fe90236..f0cb03d 100644 --- a/clientarea/hgcloud/css/login.css +++ b/clientarea/hgcloud/css/login.css @@ -599,13 +599,14 @@ position: fixed; top: 16px; left: 20px; - z-index: 20; + z-index: 100; display: flex; align-items: center; text-decoration: none; padding: 12px 14px; border-radius: 8px; transition: all 0.2s; + cursor: pointer; } .back-home-link:hover { @@ -616,11 +617,8 @@ height: 28px; width: auto; opacity: 1; - transition: opacity 0.2s; -} - -.back-home-link:hover .back-home-logo { - opacity: 1; + display: block; + pointer-events: none; } /* ---- 移动端 ---- */ diff --git a/clientarea/hgcloud/css/regist.css b/clientarea/hgcloud/css/regist.css index 5a126ac..a56bda0 100644 --- a/clientarea/hgcloud/css/regist.css +++ b/clientarea/hgcloud/css/regist.css @@ -481,13 +481,14 @@ position: fixed; top: 16px; left: 20px; - z-index: 20; + z-index: 100; display: flex; align-items: center; text-decoration: none; padding: 12px 14px; border-radius: 8px; transition: all 0.2s; + cursor: pointer; } .back-home-link:hover { @@ -498,9 +499,6 @@ height: 28px; width: auto; opacity: 1; - transition: opacity 0.2s; -} - -.back-home-link:hover .back-home-logo { - opacity: 1; + display: block; + pointer-events: none; }