Solution 要做什麼
對照完整答案、責任邊界與原因。
本主題檔案:files/style.css
定位:在 Computed 讀第二個 section 的 margin-block-start,先記錄目前是否屬於 spacing scale。
Solution · code-edit
對照完整答案、責任邊界與原因。
對照完整答案、責任邊界與原因。
本主題檔案:files/style.css
定位:在 Computed 讀第二個 section 的 margin-block-start,先記錄目前是否屬於 spacing scale。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
第二個 section 使用任意 13px margin-block-start。
runtime 的 margin-block-start 由 13px 變 32px;其他相同層級 section 使用同一 token。
:root{--space-sm:.5rem;--space-md:1rem;--space-lg:2rem}.page-section+.page-section{margin-block-start:var(--space-lg)}只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.cssmain.jsservices.html證據:runtime before=13px、after=32px、property=margin-block-start
回到主題說明