Solution · code-edit

stacking context 成因

對照完整答案、責任邊界與原因。

Solution 要做什麼

對照完整答案、責任邊界與原因。

本主題檔案:files/style.css

定位:由被遮元素往上檢查 position/z-index、transform、opacity,而非只看自身 z-index。

本階段驗收

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

目前要處理

兩卡使用 absolute offset 重疊;目標卡 opacity:1。

預期看到

runtime opacity 由1變0.99;required probe 回傳 frontId 與 before/after stacking 狀態。

.card-front{position:relative;z-index:2;opacity:.99}.card-back{transform:translateZ(0)}

檔案清單

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

證據:現有 runtime before=1、after=0.99;required facts 包含 frontId 與 before/after

回到主題說明