Screen 对象
The Screen object is an object that can be accessed through the screen property of the Window object.
Screen对象可通过window对象的screen属性来访问到
The Screen object contains information about the client's display screen.
Screen对象包含了有关客户显示屏幕的信息
IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).
Screen 对象属性
Property 属性 | Description 描述 | IE | F | N | W3C |
---|---|---|---|---|---|
availHeight | Returns the height of the display screen - excluding the Windows Taskbar 返回显示屏幕的高 - 不包含窗口的任务条 | 4 | 1 | 4 | |
availWidth | Returns the width of the display screen - excluding the Windows Taskbar 返回显示屏幕的宽读 - 不包含窗口的任务条 | 4 | 1 | 4 | |
bufferDepth | Sets or returns the bit depth of the color palette in the off-screen bitmap buffer 设置或返回点阵图像素的位元数大小 | 4 | |||
colorDepth | Returns the bit depth of the color palette on the destination device or buffer 获取用于目标设置或缓冲区的颜色每像素位数 | 4 | 1 | 4 | |
deviceXDPI | Returns the number of horizontal dots per inch of the display screen 设置或获取系统屏幕水平每英寸点数(DPI)的数值。 | 6 | |||
deviceYDPI | Returns the number of vertical dots per inch of the display screen 设置或获取系统屏幕垂直每英寸点数(DPI)的数值。 | 6 | |||
fontSmoothingEnabled | Returns whether the user has enabled font smoothing in the display control panel 获取用户是否在控制面板的显示设置中启用了圆整屏幕字体边角的选项。 | 4 | |||
height | The height of the display screen 获取屏幕的垂直分辨率。 | 4 | 1 | 4 | |
logicalXDPI | Returns the normal number of horizontal dots per inch of the display screen 获取系统屏幕水平每英寸点数(DPI)的常规数值。 | 6 | |||
logicalYDPI | Returns the normal number of vertical dots per inch of the display screen 获取系统屏幕垂直每英寸点数(DPI)的常规数值。 | 6 | |||
pixelDepth | Returns the color resolution (in bits per pixel) of the display screen 返回显示屏幕的颜色分辨率 | 1 | 4 | ||
updateInterval | Sets or returns the update interval for the screen 设置或获取屏幕的更新间隔。 | 4 | |||
width | Returns width of the display screen 获取屏幕的垂直分辨率。 | 4 | 1 | 4 |