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;

个性化需求沟通 扫客服加V加群: