javascript - 最高可能的 z-index 是多少?

标签 javascript ajax z-index

<分区>

我在规范中找不到它。 我正在使用很多第 3 方 javascript,并希望确保某些部分出现在其他所有部分之上。

最佳答案

来自CSS 2.1 Specification :

4.3.1 Integers and real numbers

Some value types may have integer values (denoted by ) or real number values (denoted by ). Real numbers and integers are specified in decimal notation only. An consists of one or more digits "0" to "9". A can either be an , or it can be zero or more digits followed by a dot (.) followed by one or more digits. Both integers and real numbers may be preceded by a "-" or "+" to indicate the sign. -0 is equivalent to 0 and is not a negative number.

Note that many properties that allow an integer or real number as a value actually restrict the value to some range, often to a non-negative value.

所以规范不限制范围。我猜 2^31 - 1(带符号的 32 位整数)是大多数实现中的限制。

关于javascript - 最高可能的 z-index 是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/654343/

相关文章:

javascript - OpenLayers 集群重新计算

javascript - 网格线后面的边框

php - 如何创建虚拟滚动条?

wpf - WindowsFormsHost 始终是 WPF 元素的最顶层

javascript - 现代浏览器不支持"DOMAttrModified"事件?

javascript - 从 typescript 库导入的符号未定义

css - z-index 问题 CSS

jquery - jQuery 选项卡、Superfish 菜单的 z-index 问题

javascript - 使用ajax加载jquery htmlbox

ajax - Woocommerce Ajax 以编程方式添加到购物车