Checkpoint 要做什麼
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/style.css
定位:先確認 href hash 與 target id 一致,再量 header height。
Checkpoint · code-edit
只驗證本主題責任,不偷渡其他答案。
只驗證本主題責任,不偷渡其他答案。
本主題檔案: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}只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.css證據:現有 runtime before=0px、after=72px;required facts 包含 targetTop、headerHeight、scrollTop
前往 Solution →