feat: 导航栏固定在顶部 (position:fixed)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- .nav-shadow 加 position:fixed + z-index:9999 - body 加 padding-top:72px 防止内容被遮挡
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
/* 固定导航栏占位 */
|
||||||
|
body {
|
||||||
|
padding-top: 72px;
|
||||||
|
}
|
||||||
|
|
||||||
.section-content {
|
.section-content {
|
||||||
padding: 80px 20px;
|
padding: 80px 20px;
|
||||||
max-width: 1440px;
|
max-width: 1440px;
|
||||||
@@ -66,7 +71,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav-shadow {
|
.nav-shadow {
|
||||||
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 9999;
|
||||||
/* 深色毛玻璃 Header,与下拉菜单统一风格 */
|
/* 深色毛玻璃 Header,与下拉菜单统一风格 */
|
||||||
background: rgba(10, 12, 22, 0.92);
|
background: rgba(10, 12, 22, 0.92);
|
||||||
backdrop-filter: blur(16px);
|
backdrop-filter: blur(16px);
|
||||||
|
|||||||
Reference in New Issue
Block a user