var strInfo=""
   strInfo
+="\r\n網頁可見區域寬:"+document.body.clientWidth; 
   strInfo
+="\r\n網頁可見區域高:"+document.body.clientHeight; 
   strInfo
+="\r\n網頁可見區域寬:"+document.body.offsetWidth+"(包括邊線的寬)"
   strInfo
+="\r\n網頁可見區域高:"+document.body.offsetHeight+"(包括邊線的寬)"
   strInfo
+="\r\n網頁正文全文寬:"+document.body.scrollWidth; 
   strInfo
+="\r\n網頁正文全文高:"+document.body.scrollHeight; 
   strInfo
+="\r\n網頁被捲去的高:"+document.body.scrollTop; 
   strInfo
+="\r\n網頁被捲去的左:"+document.body.scrollLeft; 
   strInfo
+="\r\n網頁正文部分上:"+window.screenTop; 
   strInfo
+="\r\n網頁正文部分左:"+window.screenLeft; 
   strInfo
+="\r\n屏幕分辨率的高:"+window.screen.height; 
   strInfo
+="\r\n屏幕分辨率的寬:"+window.screen.width; 
   strInfo
+="\r\n屏幕可用工作區高度:"+window.screen.availHeight; 
   strInfo
+="\r\n屏幕可用工作區寬度:"+window.screen.availWidth; 
   window.confirm(strInfo);

相关文章:

  • 2022-02-09
  • 2022-03-08
  • 2021-12-28
  • 2021-09-09
  • 2021-08-31
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2022-01-12
  • 2021-08-30
  • 2021-12-19
  • 2021-12-26
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案