fix: 修复个人信息板块背景图片遮挡内容的问题

- 设置背景图片z-index为0
- 添加pointer-events: none防止背景图片影响交互
- 为所有内容元素设置z-index: 1确保显示在背景之上
This commit is contained in:
KQL
2025-09-03 10:30:47 +08:00
parent a6913e63e3
commit fd6cb830f1

View File

@@ -21,6 +21,8 @@
right: 0; right: 0;
background-image: url("@/assets/images/PersonalProfile/personal_profile_bg.png"); background-image: url("@/assets/images/PersonalProfile/personal_profile_bg.png");
background-size: 100% 100%; background-size: 100% 100%;
z-index: 0;
pointer-events: none;
} }
.profile-card-user-info { .profile-card-user-info {
@@ -30,6 +32,8 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
position: relative;
z-index: 1;
.profile-card-user-avatar { .profile-card-user-avatar {
width: 60px; width: 60px;
@@ -77,6 +81,8 @@
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
position: relative;
z-index: 1;
.profile-card-achievement-info-item { .profile-card-achievement-info-item {
width: 80px; width: 80px;
@@ -112,6 +118,8 @@
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.8);
/* 投影box-shadow */ /* 投影box-shadow */
box-shadow: 2px 2px 16.4px 0 rgba(103, 162, 247, 0.25); 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 { .profile-card-class-info-item:last-child {
margin-bottom: 0; margin-bottom: 0;