document.body.clientHeight 获取当前页面高度
hight = document.body.clientHeight - 50;
//具体div赋值
document.getElementById("scrollDiv").style.height=hight;
ocument.getElementById("iframe").height=hight; //iframe高度赋值
//body初始化高度赋值
document.getElementsByTagName('body')[0].style.height =hight+'px';