document. body.offsetHeight的问题

https://www.doc88.com/p-9035790031495.html

document. body. offsetHeight在火狐浏览器下所得的值为0,此时可以使用

var CurrentBodyHeight=document. body. offsetHeight > 0 ?
document. body.offsetHeight : document.body.clientHeight;

posted @ 2022-10-28 18:05  yinghualeihenmei  阅读(35)  评论(0)    收藏  举报