|
【目录】 【上一页】 【下一章】 【索引】
screen
包含了描述显示屏幕和颜色的属性。
The JavaScript runtime engine creates the screen object for you. You can access its properties automatically.
该对象包含了允许你获取关于用户显示情况信息的只读属性。
The following function creates a string containing the current display properties:
function screen_properties() { document.examples.results.value = "("+screen.width+" x "+screen.height+") pixels, "+ screen.pixelDepth +" bit depth, "+ screen.colorDepth +" bit color palette depth."; } // end function screen_properties
availHeight
Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.
Specifies the width of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.
The bit depth of the color palette in bits per pixel, if a color palette is in use. Otherwise, this property is derived from screen.pixelDepth.
Display screen height, in pixels.
Display screen color resolution, in bits per pixel.
Display screen width, in pixels.
【目录】 【上一页】 【下一章】 【索引】
|