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

国产一级淫片免费视频|安魂曲电影完整版在线观看国语|热久久精彩视频|亚洲一卡一卡,都市av,亚洲欧美自拍视频,国产婷婷色综合av蜜臀av

技術文章
網頁設計中js獲取網頁屏幕可見區(qū)域高度
發(fā)布日期:2019-08-06 閱讀次數:3073 字體大?。?a href="javascript:;" onclick="ChangeFontSize('content',16)">大

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