Iframe自适应高度
<iframe src="home.jsp" frameborder=0 width="970" scrolling="no" name="mainFrame" align="center" onLoad="iFrameHeight();"> </iframe>
//IFrame自动适应屏幕
function iFrameHeight() {
var ifm= document.getElementById("mainFrame");
var subWeb = document.frames ? document.frames["mainFrame"].document :
ifm.contentDocument;
if(ifm != null && subWeb != null) {
ifm.height = subWeb.body.scrollHeight;
}
}