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;