Checkpoint · code-edit

scroll-margin-top

只驗證本主題責任,不偷渡其他答案。

Checkpoint 要做什麼

只驗證本主題責任,不偷渡其他答案。

本主題檔案:files/style.css

定位:先確認 href hash 與 target id 一致,再量 header height。

本階段驗收

頁面不會替你修改檔案;請在實作檔完成後重新整理確認。

目前要處理

目標 id 存在,scroll-margin-top:0,header 高72px。

預期看到

runtime 由0px變72px;required facts 顯示 targetTop 大於等於 headerHeight。

.section-heading{scroll-margin-top:4.5rem}

檔案清單

只在本階段資料夾內操作,避免改到其他章節。

證據:現有 runtime before=0px、after=72px;required facts 包含 targetTop、headerHeight、scrollTop

前往 Solution →