Javascript获取屏幕分辨率及工作区高度和宽度的方法

屏幕分辨率

window.screen.height

window.screen.width

浏览器客户区大小(按下F11全屏后,等于屏幕的分辨率)

document.documentElement.clientHeight

document.documentElement.clientWidth

屏幕可用区域大小(屏幕高度减去任务栏高度,自动隐藏任务栏后,等于屏幕的分辨率)

window.screen.availHeight

window.screen.availHeight

seo:http://greatverve.cnblogs.com/archive/2011/06/25/js-screen.html

posted @ 2011-06-25 07:19  大气象  阅读(1482)  评论(0编辑  收藏  举报
http://www.tianqiweiqi.com