JavaScript中的Screen屏幕對(duì)象
更新時(shí)間:2008年01月16日 20:40:17 作者:
JavaScript中的Screen屏幕對(duì)象
這是基本JavaScript的屏幕對(duì)象
screen 屏幕對(duì)象 反映了當(dāng)前用戶的屏幕設(shè)置。
width 返回屏幕的寬度(像素?cái)?shù))。
height 返回屏幕的高度。
availWidth 返回屏幕的可用寬度(除去了一些不自動(dòng)隱藏的類似任務(wù)欄的東西所占用的寬度)。
availHeight 返回屏幕的可用高度。
colorDepth 返回當(dāng)前顏色設(shè)置所用的位數(shù) - 1:黑白;8:256色;16:增強(qiáng)色;24/32:真彩色
下面是英文的Navigator瀏覽器的屏幕對(duì)象:
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.
screen 屏幕對(duì)象 反映了當(dāng)前用戶的屏幕設(shè)置。
width 返回屏幕的寬度(像素?cái)?shù))。
height 返回屏幕的高度。
availWidth 返回屏幕的可用寬度(除去了一些不自動(dòng)隱藏的類似任務(wù)欄的東西所占用的寬度)。
availHeight 返回屏幕的可用高度。
colorDepth 返回當(dāng)前顏色設(shè)置所用的位數(shù) - 1:黑白;8:256色;16:增強(qiáng)色;24/32:真彩色
下面是英文的Navigator瀏覽器的屏幕對(duì)象:
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.
相關(guān)文章
Javascript 復(fù)制數(shù)組實(shí)現(xiàn)代碼
Javascript 復(fù)制數(shù)組實(shí)現(xiàn)代碼,需要的朋友可以參考下。2009-11-11《javascript少兒編程》location術(shù)語(yǔ)總結(jié)
在本篇內(nèi)容中小編整理了關(guān)于《javascript少兒編程》location術(shù)語(yǔ)總結(jié),這是學(xué)習(xí)的基礎(chǔ),一起跟著參考下吧。2018-05-05Javascript - 全面理解 caller,callee,call,apply
Javascript - 全面理解 caller,callee,call,apply...2007-01-01簡(jiǎn)介JavaScript中fixed()方法的使用
這篇文章主要介紹了JavaScript中fixed()方法的使用,是JS入門學(xué)習(xí)中的基礎(chǔ)知識(shí),需要的朋友可以參考下2015-06-06javascript中聲明函數(shù)的方法及調(diào)用函數(shù)的返回值
這篇文章主要介紹了javascript中聲明函數(shù)的方法及調(diào)用函數(shù)時(shí)的返回值,示例如下,不了解的方法可以參考下2014-07-07javascript下for循環(huán)用法小結(jié)
javascript下for循環(huán)用法小結(jié)...2007-07-07