From 40b348dd5680e474d3329cdd7201df91422393f0 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Wed, 21 Jan 2026 14:06:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E7=84=A6=E7=82=B9=E4=B8=8E=E5=A4=B1=E7=84=A6=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E8=A7=86=E8=A7=89=E4=B8=AD=E5=BF=83=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 .input-group-text 添加 flexbox 垂直居中对齐 - 为搜索图标设置 line-height: 1 确保视觉中心一致 - 为 input.form-control 添加 flexbox 对齐确保文本垂直居中 - 移除属性之间的多余空行,符合代码规范 --- style.css | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/style.css b/style.css index abbee5f..b772df8 100644 --- a/style.css +++ b/style.css @@ -1856,9 +1856,8 @@ body.leftbar-can-headroom.headroom---unpinned #navbar-main { } #navbar_search_input_container .input-group-text i.fa { - font-size: 16px; - + line-height: 1; } #navbar_search_input_container:not(.open) input.form-control { @@ -1912,17 +1911,17 @@ body.leftbar-can-headroom.headroom---unpinned #navbar-main { } #navbar_search_input_container .input-group-text { - + display: flex; + align-items: center; + justify-content: center; transition: all var(--animation-slow) var(--ease-emphasized); - } #navbar_search_input_container input.form-control { - + display: flex; + align-items: center; width: 200px; - transition: all 0.5s cubic-bezier(0.4, 0, 0, 1); - } #navbar_search_btn_mobile {