Checkpoint 要做什麼
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/style.css
定位:先在 Elements 沿父層往上數,確認被測 p 與 .card 中間有一個 div。
Checkpoint · code-edit
只驗證本主題責任,不偷渡其他答案。
只驗證本主題責任,不偷渡其他答案。
本主題檔案:files/style.css
定位:先在 Elements 沿父層往上數,確認被測 p 與 .card 中間有一個 div。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
一個 p 是 card 直接子層,另一個 p 位於 card > div > p。
直接 p 同時得到 color 與 font-weight;巢狀 p 只得到 descendant color,不得到 child font-weight。
.card p { color:#155e75 } .card > p { font-weight:700 }只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.css證據:巢狀 p 的 computed color 由 rgb(23, 50, 77) 變 rgb(21, 94, 117),font-weight 仍維持 400
前往 Solution →