js 取得div高度
document.getElementById('items_div').clientHeight
示列代码:
div.style.top = document.getElementById('div__header').clientHeight+document.getElementById('div__body').clientHeight+document.getElementById('items_div').clientHeight;
//document.body.clientHeight;//document.getElementById('items_div').style.height;
本文来自博客园,作者:CarlZeng,转载请注明原文链接:https://www.cnblogs.com/backuper/archive/2009/06/10/1500206.html
需求沟通链接 扫客服加群:
![](https://images.cnblogs.com/cnblogs_com/backuper/933606/o_240408031754_%E6%89%AB%E5%AE%A2%E6%9C%8D%E5%8A%A0%E7%BE%A4.png)