JavaScript入門教程(5) js Screen屏幕對(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.
- JavaScript While 循環(huán)基礎(chǔ)教程
- JavaScript Break 和 Continue區(qū)別教程
- 《零基礎(chǔ)學(xué)JavaScript 電子教程/隨書光盤》電子教程/隨書光盤[ISO]迅雷下載
- 比較不錯(cuò)的函數(shù)式JavaScript編程指南教程
- JavaScript入門教程(11) js事件處理
- 精通Javascript+jQuery 視頻教程 在線觀看
- JavaScript 核心參考教程 內(nèi)置對(duì)象
- Aptana調(diào)試javascript圖解教程
- JavaScript 學(xué)習(xí)初步 入門教程
- JavaScript中“基本類型”之爭(zhēng)小結(jié)
- Javascript WebSocket使用實(shí)例介紹(簡(jiǎn)明入門教程)
- javascript教程:關(guān)于if簡(jiǎn)寫語(yǔ)句優(yōu)化的方法
- 淺析JavaScript基本類型與引用類型
- JavaScript基礎(chǔ)教程之a(chǎn)lert彈出提示框?qū)嵗?/a>
- JavaScript數(shù)據(jù)類型之基本類型和引用類型的值
- javascript中基本類型和引用類型的區(qū)別分析
- 跟我學(xué)習(xí)javascript的基本類型和引用類型
- JavaScript高級(jí)教程5.6之基本包裝類型(詳細(xì))
相關(guān)文章
ES6下javascript解構(gòu)賦值常見(jiàn)用法總結(jié)
這篇文章主要介紹了在ES6下javascript賦值常見(jiàn)用法總結(jié),需要的朋友可以參考下2022-01-01簡(jiǎn)介JavaScript中Math.LOG10E屬性的使用
這篇文章主要介紹了JavaScript中Math.LOG10E屬性的使用,是JS入門學(xué)習(xí)中的基礎(chǔ)知識(shí),需要的朋友可以參考下2015-06-06

JavaScript 關(guān)于事件循環(huán)機(jī)制的刨析