BODY對象寬度document.body.clientHeight==>BODY對象高度document.documentElement.clientWidth==>可見區域寬度document.documentElement.clientHeight==>可見區域高度document.body.clientWidth==>網頁可見區域寬?document.body.clientHeight==>網頁可見區域高document.body.offsetWidth==>網頁可見區域寬包括邊線的寬document.body.offsetHeight==>網頁可見區域高包括邊線的高document.body.scrollWidth==>網頁正文全文寬document.body.scrollHeight==>網頁正文全文高document.bod...">

日韩午夜高清福利片在线观看-日韩午夜激情视频-日韩午夜精品-日韩午夜免费-国产网站精品-国产网站免费

技術文章
網頁設計中js獲取網頁屏幕可見區域高度
發布日期:2019-08-06 閱讀次數:2132 字體大小:

document.body.clientWidth ==> BODY對象寬度
document.body.clientHeight ==> BODY對象高度
document.documentElement.clientWidth ==> 可見區域寬度
document.documentElement.clientHeight ==> 可見區域高度
document.body.clientWidth ==> 網頁可見區域寬 
document.body.clientHeight ==> 網頁可見區域高
document.body.offsetWidth ==> 網頁可見區域寬(包括邊線的寬)
document.body.offsetHeight ==> 網頁可見區域高(包括邊線的高)
document.body.scrollWidth ==> 網頁正文全文寬document.body.scrollHeight ==> 網頁正文全文高
document.body.scrollTop ==> 網頁被卷去的高
document.body.scrollLeft ==> 網頁被卷去的左
window.screenTop ==> 網頁正文部分上
window.screenLeft ==> 網頁正文部分左
window.screen.height ==> 屏幕分辨率的高
window.screen.width ==> 屏幕可用工作區高度
window.screen.availHeight ==> 屏幕可用工作區高度
window.screen.availWidth ==> 屏幕可用工作區寬度