CSS负z-index:是什么意思? [英] CSS negative z-index: what does it mean?

查看:46
本文介绍了CSS负z-index:是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我向元素的z-index属性添加负整数值,那么根据标准,预期效果是什么?

What is the expected effect according to the standards, if I add a negative integer value to the z-index property of an element?

我搜索了答案,但只找到了这个答案:
https://developer.mozilla.org/zh-CN/docs/Web/CSS/z-index
负值会降低优先级" 对我来说没有任何意义.

I searched for the answer but only have found this:
https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
The "Negative values to lower the priority" doesn't mean anything for me.

推荐答案

z索引为负的元素将在大多数元素下呈现,除非它们的z索引更低.

An element with a negative z-index will be rendered under most elements, unless they have an even lower z-index.

这篇关于CSS负z-index:是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆