From fd6cb830f1ce0902fc5e16b886e028785c65c8c0 Mon Sep 17 00:00:00 2001 From: KQL Date: Wed, 3 Sep 2025 10:30:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=9D=BF=E5=9D=97=E8=83=8C=E6=99=AF=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=81=AE=E6=8C=A1=E5=86=85=E5=AE=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 设置背景图片z-index为0 - 添加pointer-events: none防止背景图片影响交互 - 为所有内容元素设置z-index: 1确保显示在背景之上 --- .../PersonalProfile/components/ProfileCard/index.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/PersonalProfile/components/ProfileCard/index.css b/src/pages/PersonalProfile/components/ProfileCard/index.css index 3f2f59c..d96326d 100644 --- a/src/pages/PersonalProfile/components/ProfileCard/index.css +++ b/src/pages/PersonalProfile/components/ProfileCard/index.css @@ -21,6 +21,8 @@ right: 0; background-image: url("@/assets/images/PersonalProfile/personal_profile_bg.png"); background-size: 100% 100%; + z-index: 0; + pointer-events: none; } .profile-card-user-info { @@ -30,6 +32,8 @@ justify-content: flex-start; align-items: center; margin-bottom: 10px; + position: relative; + z-index: 1; .profile-card-user-avatar { width: 60px; @@ -77,6 +81,8 @@ justify-content: space-around; align-items: center; margin-bottom: 20px; + position: relative; + z-index: 1; .profile-card-achievement-info-item { width: 80px; @@ -112,6 +118,8 @@ background-color: rgba(255, 255, 255, 0.8); /* 投影(box-shadow) */ box-shadow: 2px 2px 16.4px 0 rgba(103, 162, 247, 0.25); + position: relative; + z-index: 1; .profile-card-class-info-item:last-child { margin-bottom: 0;