先在 HTML 建立 Grid container 與 Grid item 的父子關係。
現在要做:請在 index.html 的「service-section」位置完成:把四個服務項目放入同一個 service-grid 父層
貼上位置:index.html:service-section 區塊,先保留同一檔案的其他內容。
<section class="service-section" aria-labelledby="services-title">
<h2 id="services-title">服務方案</h2>
<div class="service-grid">
<article class="service-card"><h3>到府諮詢</h3><p>先釐清需求。</p></article>
<article class="service-card"><h3>定期維護</h3><p>建立服務節奏。</p></article>
<article class="service-card"><h3>空間整理</h3><p>讓內容更清楚。</p></article>
<article class="service-card"><h3>上線檢查</h3><p>確認頁面可用。</p></article>
</div>
</section>預期結果:Elements 看到一個 service-grid 與四個直接子層 service-card。
驗收證據:Elements 的 DOM 階層與 Grid overlay 的 item 數量一致。
卡住時先看這裡
常見錯誤:把 service-grid class 放到每張卡,或把卡片放在父層外。
第一個檢查:先從 Elements 選取一張卡,再往上找真正的 service-grid。