Screen对象

时间:2024-07-29 23:36:14
document.write("Screen-width:"+screen.width+"Screen-height:"+screen.height);
document.write("<br/>Screen-width:"+screen.availWidth+"Screen-height:"+screen.availHeight);
document.write("<br/>window-width:"+window.innerWidth +"window-height:"+window.innerHeight);

  Screen对象为整个显示屏的大小

window对象为浏览器的大小