From 44e230305b66a953ad394c839eabf643482a2e19 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Wed, 17 Dec 2025 16:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E4=B8=BA=200=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 .nav-header 添加 height: 72px(基础高度) - 在 .nav-right 添加 height: 100% 和 align-items: stretch - 改为从 align-items: center 改为 align-items: stretch 问题原因: common.css 中的 .nav-header 没有设置高度 导致首页 nav-right 的 height: 100% 无法计算出实际高度(为 0) 首页会通过 #index .nav-header { height: 70px } 覆盖这个基础值 但其他页面会使用这个 72px 的基础高度 现在注册按钮应该能正常显示! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- common/common.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/common.css b/common/common.css index 0f5d4a8..ab2d810 100644 --- a/common/common.css +++ b/common/common.css @@ -82,7 +82,7 @@ align-items: center; justify-content: space-between; padding: 0 20px; - + height: 72px; } .nav-header .nav-left { @@ -119,8 +119,9 @@ .nav-right { display: flex; - align-items: center; + align-items: stretch; font-size: 14px; + height: 100%; } .nav-right .control {