From 99fe8c15b3d3d965d432bf86c8a54ea90a68fdc5 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Sun, 23 Nov 2025 00:19:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E5=B1=9E=E5=85=AC=E5=8F=B8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/css/index.css b/css/index.css index 89dca85..e8d996b 100644 --- a/css/index.css +++ b/css/index.css @@ -26,6 +26,13 @@ margin: 0 auto; padding: 0 20px; } + +/* nav-menu 的第一个菜单项额外增加 20px 左边距,与 banner-list 对齐 */ +#index .nav-menu { + margin-left: 20px; +} + +/* 首页导航文字颜色 */ #index .nav-menu .nav-item { color: #E5E7EB; border-bottom-color: transparent; @@ -188,7 +195,7 @@ } */ -/* 轮播文字层:使用与 section-content 相同的左边距计算 */ +/* 轮播文字层:使用与 banner-list 相同的左边距计算 */ .banner-cont .swiper-slide .section-content { position: absolute; top: 50%; @@ -196,7 +203,7 @@ transform: translate(-50%, -50%); width: 100%; max-width: 1440px; - padding: 0 20px; + padding: 0 40px; /* 40px = section-content的20px + banner-list的20px */ box-sizing: border-box; z-index: 10; text-align: left;