凝志信远
中文
|
English
HOME
ABOUT
EXPERTISE
NETWORK
CONTACT
JOIN US
WORLDWIDE COVERAGE
CHINA COVERAGE
WORLDWIDE COVERAGE
Address:Room911,Building 3,No.3 Jinguan North 2 Road,
Nanfaxin Town,Shunyi District,Beijing,China
POSTAL CODE:101300
TEL:010-89435072 Fax:010-89435072
RECORD NUMBER:京ICP备2021014071号-1
function calcDistance() { var topHeight = document.getElementById("form1").scrollHeight; var bottomHeight = document.getElementById("bottom").scrollHeight; var topWidth = document.getElementById("form1").scrollWidth; var bottomWidth = document.getElementById("bottom").scrollWidth; var allHeight = document.documentElement.clientHeight; var bottom = document.getElementById("bottom"); if (topHeight < allHeight) { bottom.style.position = "absolute"; bottom.style.bottom = "0px"; bottom.style.left = (topWidth - bottomWidth) / 2 + "px"; } else { bottom.style.position = ""; bottom.style.bottom = ""; } setTimeout(function () { calcDistance(); }, 10); } calcDistance();