We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z-index
position
static
auto
position: sticky
display: flex
position: static
position: relative
html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
position
且值不是static
的元素,z-index
会生效,无论是显示设置还是隐式auto
。position: sticky
时,该元素会直接产生层叠上下文。display: flex
的子元素,即便position: static
,z-index
也会生效,它的表现相当于position: relative
。z-index
为数值时,该元素会产生层叠上下文,auto
不会产生层叠上下文。html
产生一个根层叠上下文。The text was updated successfully, but these errors were encountered: