# demo-02-trapped 左边子级 z-index 999,右边子级 1,但右父级 z-index 2 > 左父级 1。 ## 运行 直接打开 `index.html`。 ## 观察 - 右边父级整体在左边之上 - 左边子级的 999 只在左父级上下文内有效 - 父级 z-index / transform / opacity 都会创建上下文