screen 屏幕對象 反映了當(dāng)前用戶的屏幕設(shè)置。

width 返回屏幕的寬度(像素數(shù))。

height 返回屏幕的高度。

availWidth 返回屏幕的可用寬度(除去了一些不自動隱藏的類似任務(wù)欄的東 " /> 97色伦亚洲国产,水蜜桃精品av一区二区,肉色欧美久久久久久久免费看

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

JavaScript中的Screen屏幕對象

這是基本JavaScript的屏幕對象



screen 屏幕對象 反映了當(dāng)前用戶的屏幕設(shè)置。

width 返回屏幕的寬度(像素數(shù))。

height 返回屏幕的高度。

availWidth 返回屏幕的可用寬度(除去了一些不自動隱藏的類似任務(wù)欄的東西所占用的寬度)。

availHeight 返回屏幕的可用高度。

colorDepth 返回當(dāng)前顏色設(shè)置所用的位數(shù) - 1:黑白;8:256色;16:增強色;24/32:真彩色



下面是英文的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技術(shù)JavaScript中的Screen屏幕對象,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 上犹县| 新宾| 南华县| 泊头市| 察哈| 姜堰市| 西昌市| 临汾市| 永昌县| 田东县| 上杭县| 宁波市| 钦州市| 漳平市| 富平县| 湾仔区| 保德县| 洮南市| 汾阳市| 东海县| 唐河县| 光泽县| 新郑市| 德化县| 高淳县| 呼伦贝尔市| 南漳县| 桂林市| 资源县| 集贤县| 堆龙德庆县| 碌曲县| 茶陵县| 德安县| 湖南省| 富宁县| 广河县| 墨竹工卡县| 鸡西市| 承德市| 连平县|