|
【目录】 【上一页】 【下一章】 【索引】
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.
availWidth
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.
colorDepth
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.
height
Display screen height, in pixels.
pixelDepth
Display screen color resolution, in bits per pixel.
width
Display screen width, in pixels.
【目录】 【上一页】 【下一章】 【索引】
|