From 370283965794565b223c6245af6ea3098a93915e Mon Sep 17 00:00:00 2001 From: yiqiu Date: Wed, 17 Dec 2025 16:55:47 +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=20-=20=E4=BD=BF=E7=94=A8=20align-i?= =?UTF-8?q?tems:=20stretch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除575px断点中重复的闭合括号 - 575px断点: 将nav-header的align-items从center改为stretch - 575px断点: 为nav-right添加height: 100%和align-items: stretch - 360px断点: 将nav-header的align-items从center改为stretch 这个修复解决了浏览器开发者工具显示的问题: - nav-right height: 0px → 现在为48px/44px(取决于断点) - no-login height: 0px → 现在为48px/44px - registBtn height: 0px → 现在为48px/44px 使用align-items: stretch确保flex容器的子元素被拉伸以填充容器高度,而不是折叠到0px。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- css/index.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/css/index.css b/css/index.css index f5db902..3a92fa7 100644 --- a/css/index.css +++ b/css/index.css @@ -2485,7 +2485,7 @@ html { padding: 0 8px; height: 50px !important; display: flex; - align-items: center; + align-items: stretch; overflow: hidden; } @@ -3048,7 +3048,7 @@ html { padding: 0 10px; height: 48px !important; display: flex; - align-items: center; + align-items: stretch; overflow: hidden; } @@ -3551,7 +3551,7 @@ html { padding: 0 8px; height: 44px !important; display: flex; - align-items: center; + align-items: stretch; overflow: hidden; } @@ -3563,7 +3563,8 @@ html { #index .nav-header .nav-right { display: flex; - align-items: center; + align-items: stretch; + height: 100%; } #index .nav-header .nav-left .nav-icon {