# demo-01-z-index 三个重叠盒子的 z-index 分别为 1、3、2。 ## 运行 直接打开 `index.html`。 ## 观察 - B 在最上面,C 次之,A 最下 - 没有 position 的 z-index 不生效 - z-index 相同则按 DOM 顺序