JavaScript中的Screen屏幕對象

  這是基本JavaScript的屏幕對象瀏覽器

  screen 屏幕對象 反映了當前用戶的屏幕設置。htm

  width 返回屏幕的寬度(像素數)。對象

  height 返回屏幕的高度。ip

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

  availHeight 返回屏幕的可用高度。get

  colorDepth 返回當前顏色設置所用的位數 - 1:黑白;8:256色;16:加強色;24/32:真彩色it

  下面是英文的Navigator瀏覽器的屏幕對象:http://map.sogou.com/poi/1_D1000058002509.htmio

  availHeight:minus permanent or semipermanent user interface features displayed by the operating system:such as the Taskbar on Windows.map

  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.

相關文章
相關標籤/搜索