From 8ae55937b8b23fa54d21e259830eb19b214a270b Mon Sep 17 00:00:00 2001 From: yiqiu Date: Tue, 16 Dec 2025 21:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=8C=89=E9=92=AE=E9=AB=98=E5=BA=A6=E4=B8=BA?= =?UTF-8?q?0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: - 注册按钮使用相对高度 height: 100% 导致高度计算为0 解决: - 改为固定高度值: - 767px:height: 50px(导航栏高度) - 575px:height: 48px(导航栏高度) - 360px:height: 44px(导航栏高度) - 添加 justify-content: center 确保按钮内容居中 - 所有属性都使用 !important 强制应用 注册按钮现在应该正确显示在右上角。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- css/index.css | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/css/index.css b/css/index.css index 8039ced..8980c69 100644 --- a/css/index.css +++ b/css/index.css @@ -2549,10 +2549,11 @@ html { padding: 0 10px !important; font-size: 10px !important; min-width: auto !important; - height: 100% !important; + height: 50px !important; line-height: 50px !important; - display: flex; - align-items: center; + display: flex !important; + align-items: center !important; + justify-content: center !important; } /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ @@ -3095,10 +3096,11 @@ html { padding: 0 10px !important; font-size: 10px !important; min-width: auto !important; - height: 100% !important; + height: 48px !important; line-height: 48px !important; - display: flex; - align-items: center; + display: flex !important; + align-items: center !important; + justify-content: center !important; } /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ @@ -3586,10 +3588,11 @@ html { padding: 0 8px !important; font-size: 9px !important; min-width: auto !important; - height: 100% !important; + height: 44px !important; line-height: 44px !important; - display: flex; - align-items: center; + display: flex !important; + align-items: center !important; + justify-content: center !important; } /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */