屏幕对象 Screen

属性 描述
width 返回屏幕宽度
height 返回屏幕高度
availWidth 返回屏幕宽度(不包含桌面任务栏)
availHeight 返回屏幕高度(不包含桌面任务栏)

示例:

var sw = screen.width;