Skip to content

Commit 2fe0f9d

Browse files
authored
Update index.html
1 parent 6306602 commit 2fe0f9d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
header {
5252
text-align: center;
5353
margin-bottom: 3rem;
54+
padding: 4rem 2rem; /* 加高头部,让背景图完整显示 */
55+
border-radius: 12px; /* 给header加圆角,和卡片风格统一 */
56+
/* 核心:背景图+黑色半透明遮罩(防止背景太亮,盖住白色标题) */
57+
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("images/background.png");
58+
background-size: cover; /* 让背景图铺满整个header */
59+
background-position: center; /* 让背景图居中显示 */
60+
border: 1px solid #2a2a2a; /* 加边框,和卡片风格统一 */
5461
}
5562

5663
header h1 {

0 commit comments

Comments
 (0)