26
26
background-color : initial;
27
27
}
28
28
29
- .modal {
29
+ .modal {
30
30
z-index : 100 ;
31
31
32
32
padding-top : 25% ;
36
36
z-index : 90 ; /* 确保遮罩层的 z-index 低于模态框 */
37
37
}
38
38
39
- .ban-list {
39
+ .ban-list {
40
40
margin-top : 50px ;
41
41
list-style-type : none;
42
42
display : flex;
45
45
white-space : normal;
46
46
}
47
47
48
- .ban-list li {
48
+ .ban-list li {
49
49
margin-right : 30px ;
50
50
margin-bottom : 15px ;
51
51
padding : 10px 20px ;
103
103
< a class ="nav-link click-scroll " href ="index.html#section_5 "> 服务器类型</ a >
104
104
</ li >
105
105
< li class ="nav-item ">
106
- < span class ="ban-player "> < a class ="nav-link click-scroll " href ="ban-players.html "> 封禁名单</ a > </ span >
106
+ < span class ="ban-player "> < a class ="nav-link click-scroll "
107
+ href ="ban-players.html "> 封禁名单</ a > </ span >
107
108
</ li >
108
109
</ ul >
109
110
115
116
</ nav >
116
117
117
118
118
-
119
119
< div class ="container mt-5 ">
120
120
< h2 class ="border-bottom "> 封禁名单</ h2 >
121
121
< ul class ="ban-list " id ="bannedList ">
@@ -124,12 +124,12 @@ <h2 class="border-bottom">封禁名单</h2>
124
124
</ div >
125
125
126
126
<!-- 模态框 -->
127
- < div class =" modal " id =" userModal " tabindex =" -1 " role =" dialog " aria-labelledby =" modalLabel " aria-hidden =" true ">
127
+ < div aria-hidden =" true " aria-labelledby =" modalLabel " class =" modal " id =" userModal " role =" dialog " tabindex =" -1 ">
128
128
< div class ="modal-dialog " role ="document ">
129
129
< div class ="modal-content ">
130
130
< div class ="modal-header ">
131
131
< h5 class ="modal-title " id ="modalLabel "> 被封禁用户信息</ h5 >
132
- < button type =" button " class ="btn-close " data-bs-dismiss ="modal ">
132
+ < button class ="btn-close " data-bs-dismiss ="modal " type =" button ">
133
133
</ button >
134
134
</ div >
135
135
< div class ="modal-body ">
@@ -144,9 +144,9 @@ <h5 class="modal-title" id="modalLabel">被封禁用户信息</h5>
144
144
< script >
145
145
// 示例数据
146
146
const bannedUsers = [
147
- { name : "用户1" , reason : "违规行为" , bannedBy : "管理员A" } ,
148
- { name : "用户2" , reason : "恶意评论" , bannedBy : "管理员B" } ,
149
- { name : "用户3" , reason : "账户盗用" , bannedBy : "管理员C" } ,
147
+ { name : "用户1" , reason : "违规行为" , bannedBy : "管理员A" } ,
148
+ { name : "用户2" , reason : "恶意评论" , bannedBy : "管理员B" } ,
149
+ { name : "用户3" , reason : "账户盗用" , bannedBy : "管理员C" } ,
150
150
] ;
151
151
152
152
// 生成用户列表
0 commit comments