WebXR Device API
The read-only XRViewport property
height specifies the height, in pixels, of the viewport
onto the drawing surface within which the WebXR view is to be rendered. Along
with XRViewport.width and the origin point given by
XRViewport.x and XRViewport.y, this defines the
area within which rendered content will be drawn.
Value
The viewport's height in pixels.
Examples
See the main XRViewport page for examples.
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
