style(footer): 页脚改为内容流最底部,取消 position:fixed

- 去掉 position/left/right/bottom/z-index/pointer-events,改为 static 常规流
- 保留 margin-top:40px、padding-bottom:22px、单行横排居中(text-align:center + nowrap)
- 验证:滚到顶时 top=1217 不在视口内(不悬浮);页脚底1257/滚动区1283=流内最后元素;
  单行(三段top均1219)、居中偏移-7px;滚到底距视口底26px、距右下角火箭367px无重叠
This commit is contained in:
personal82555 committed 2026-10-15 10:25:04 +08:00
1 parent fc70d22929
commit 9e0c38f23b
2 files changed
+15 -8

No files matched your search

+3 -8
View File
@@ -228,19 +228,15 @@ onBeforeUnmount(() => {
}
}
/* 底部居中固定页脚:单行横排,贴住视口底部中线,滚动不跟随 */
/* 页脚:置于页面内容最底部(不固定、随内容滚动),单行横排居中 */
.footer {
position: fixed;
left: 0;
right: 0;
bottom: 12px;
z-index: 350;
margin-top: 40px;
padding: 0 0 22px;
text-align: center;
color: #838587;
font-size: 12px;
line-height: 1.55;
white-space: nowrap; // 强制单行,不折行
pointer-events: none; // 不拦截下方内容点击,仅链接可点
user-select: none;
.footer-sep {
@@ -249,7 +245,6 @@ onBeforeUnmount(() => {
}
:deep(a) {
pointer-events: auto;
color: #838587;
text-decoration: none;