次の方法で共有


widthInPx property

Sets or gets width of viewport in pixels.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

This property is read/write.

 

Syntax

JavaScript
object.widthInPx = ptrptr = object.widthInPx

 

Property values

Type: number

Width of viewport in pixels.

See also

DiagnosticsViewport