DOM Screen 对象

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 FNW3C
availHeightReturns the height of the display screen - excluding the Windows Taskbar
返回显示屏幕的高 - 不包含窗口的任务条
414 
availWidthReturns the width of the display screen - excluding the Windows Taskbar
返回显示屏幕的宽读 - 不包含窗口的任务条
414 
bufferDepthSets or returns the bit depth of the color palette in the off-screen bitmap buffer
设置或返回点阵图像素的位元数大小
4   
colorDepthReturns the bit depth of the color palette on the destination device or buffer
获取用于目标设置或缓冲区的颜色每像素位数
414 
deviceXDPIReturns the number of horizontal dots per inch of the display screen
设置或获取系统屏幕水平每英寸点数(DPI)的数值。
6   
deviceYDPIReturns the number of vertical dots per inch of the display screen
设置或获取系统屏幕垂直每英寸点数(DPI)的数值。
6   
fontSmoothingEnabledReturns whether the user has enabled font smoothing in the display control panel
获取用户是否在控制面板的显示设置中启用了圆整屏幕字体边角的选项。
4   
heightThe height of the display screen
获取屏幕的垂直分辨率。
414 
logicalXDPIReturns the normal number of horizontal dots per inch of the display screen
获取系统屏幕水平每英寸点数(DPI)的常规数值。
6   
logicalYDPIReturns the normal number of vertical dots per inch of the display screen
获取系统屏幕垂直每英寸点数(DPI)的常规数值。
6   
pixelDepthReturns the color resolution (in bits per pixel) of the display screen
返回显示屏幕的颜色分辨率
 14 
updateIntervalSets or returns the update interval for the screen
设置或获取屏幕的更新间隔。
4   
widthReturns width of the display screen
获取屏幕的垂直分辨率。
414 
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值