这是基本JavaScript的屏幕对象 screen 屏幕对象 反映了当前用户的屏幕设置。 width 返回屏幕的宽度(像素数)。 height 返回屏幕的高度。 availWidth 返回屏幕的可用宽度(除去了一些不自动隐藏的类似任务栏的东西所占用的宽度)。 availHeight 返回屏幕的可用高度。 colorDepth 返回当前颜色设置所用的位数 - 1:黑白;8:色;:增强色;/:真彩色 下面是英文的Navigator浏览器的屏幕对象: availHeight: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, if one is in use; otherwise, the value is derived from screen.pixelDepth. height:Display screen height. pixelDepth:Display screen color resolution (bits per pixel). width:Display screen width.
推荐整理分享JavaScript中的Screen屏幕对象(JavaScript中的this指向),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:JavaScript中的复杂数据类型又称为,JavaScript中的NaN代表什么,JavaScript中的this指向,JavaScript中的NaN代表什么,JavaScript中的数据类型分为两大类,JavaScript中的方法名不区分大小写,JavaScript中的变量名不区分大小写,JavaScript中的变量名不区分大小写,内容如对您有帮助,希望把文章链接给更多的朋友!
JavaScript中的Window窗口对象 JavaScript中的Window窗口对象他是JavaScript中最大的对象,它描述的是一个浏览器窗口。一般要引用它的属性和方法时,不需要用window.xxx这种形式,而直接
JavaScript中的History历史对象 JavaScript中的History历史对象包含了用户已浏览的URL的信息,是指历史对象指浏览器的浏览历史。鉴于安全性的需要,该对象收到很多限制,现在只剩下下
JavaScript中的Location地址对象 location地址对象它描述的是某一个窗口对象所打开的地址。要表示当前窗口的地址,只需要使用location就行了;若要表示某一个窗口的地址,就使用窗口