DOMPoint
接口的
z
property specifies the depth coordinate of a point in space.
Unless transforms have changed the orientation, a
z
of 0 is the plane of the screen, with positive values extending outward toward the user from the screen, and negative values receding into the distance behind the screen.
var zPos = DOMPoint.z;
A double-precision floating-point value indicating the
z
coordinate's value for the point. This value is
unrestricted
, meaning that it is allowed to be infinite or invalid (that is, its value may be
NaN
or
±Infinity
).
| 规范 | 状态 | 注释 |
|---|---|---|
|
Geometry Interfaces Module Level 1
The definition of 'z' in that specification. |
候选推荐 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
z
|
Chrome 61 | Edge 79 | Firefox 31 | IE No | Opera 48 | Safari 10.1 | WebView Android 61 | Chrome Android 61 | Firefox Android 31 | Opera Android 45 | Safari iOS 10.3 | Samsung Internet Android 8.0 |
完整支持
不支持
DOMPoint
AbortController
AbortSignal
AbstractRange
Attr
ByteString
CDATASection
CSSPrimitiveValue
CSSValue
CSSValueList
CharacterData
ChildNode
注释
CustomEvent
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMImplementation
DOMImplementationList
DOMImplementationRegistry
DOMImplementationSource
DOMLocator
DOMObject
DOMParser
DOMPointInit
DOMPointReadOnly
DOMRect
DOMString
DOMTimeStamp
DOMTokenList
DOMUserData
Document
DocumentFragment
DocumentType
元素
ElementTraversal
Entity
EntityReference
事件
EventTarget
HTMLCollection
MutationObserver
节点
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
ProcessingInstruction
PromiseResolver
范围
StaticRange
文本
TextDecoder
TextEncoder
TimeRanges
TreeWalker
TypeInfo
USVString
UserDataHandler
XMLDocument