The stacking context

文檔中的層疊上下文由知足如下任意一個條件的元素造成:html

1. z-index 值不爲 "auto"的 絕對/相對定位.flex

2. position位fixed.code

3. opacity 屬性值小於 1.orm

4. transform 屬性值不爲 "none".htm

5. 一個 z-index 值不爲 "auto"的 flex 項目 (flex item),即:父元素 display: flex|inline-flex.ci

6. html元素文檔

7. filter值不爲「none」的元素it

相關文章
相關標籤/搜索