我用这个函数刷新子页面总是刷新不了function test_refresh_height_01(){
var iframe = document.getElementById("main_ifr");
 try{ var bHeight = iframe.contentWindow.document.body.scrollHeight; var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; var height = Math.max(bHeight, dHeight); iframe.height =  height; }catch (ex){}}
window.setInterval(test_refresh_height_01,500);这个js代码放在父页面,在父页面中刷新 main_ifr.
请大家帮忙看看是什么原因