From 78200b29fbe1027583789d6882599fb90c8e01d5 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 21 Nov 2025 18:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index.css | 14 +++++++++----- index.html | 18 ++++++++++-------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/css/index.css b/css/index.css index f676e65..ba27f63 100644 --- a/css/index.css +++ b/css/index.css @@ -31,19 +31,23 @@ .banner-cont .banner-text .section-content { padding-top: 120px; padding-bottom: 0; - display: flex; - flex-direction: column; - align-items: flex-start; z-index: 1; } -.banner-cont .banner-text h1 { +/* 文案块:控制具体的左边距,让其与下方 banner-s 第一列内容对齐 */ +.banner-cont .banner-copy { + max-width: 560px; + margin-left: 60px; /* 与 .banner-s .banner-item 内侧 padding 对齐 */ + text-align: left; +} + +.banner-cont .banner-copy h1 { font-size: 40px; line-height: 1.2; color: #111827; } -.banner-cont .banner-desc { +.banner-cont .banner-copy .banner-desc { font-size: 16px; margin-top: 16px; margin-bottom: 32px; diff --git a/index.html b/index.html index 28c9b9e..6e25044 100644 --- a/index.html +++ b/index.html @@ -20,14 +20,16 @@