js 取得div高度-CarlZeng
document.getElementById(‘items_div’).clientHeight 示列代码: div.style.top = document.getElementById(‘div__header’).clientHeight+document.getElementById(‘div__body’).clientHeight+document.getElementById(‘i…
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;