📌  相关文章
📜  javascript 获取身体高度 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:51.677000             🧑  作者: Mango

代码示例1
var body = document.body,
    html = document.documentElement;

var height = Math.max( body.scrollHeight, body.offsetHeight, 
                       html.clientHeight, html.scrollHeight, html.offsetHeight );