很奇怪的问题啊!各位高手帮帮忙!
<script language="javascript">var newHeight=document.body.scrollHeight;
alert(newHeight);
window.parent.document.getElementById("FM_Id").style.Height=newHeight;
</script>
alert能输出newHeight的值,但是window.parent.document.getElementById("FM_Id").style.Height=newHeight却不能改变父iframe的高度;
如果直接
<script language="javascript">
var newHeight=500;
alert(newHeight);
window.parent.document.getElementById("FM_Id").style.Height=newHeight;
</script>
这样父iframe的高度却可以发生改变,!