window.parent.document.getElementById("right_space").style.height=document.body.scrollHeight;以上javasript代码在ie里很正常,内嵌页面的body里执行这段代码...
全文
回复(5) 2005-10-28 17:21 来自版块 - Web 开发技术交流
表情
kkk006216window.parent.document.getElementById("right_space").style.height=document.body.scrollHeight + 'px';(2005-10-28 17:21)
寒羽枫<script type="text/javascript" language="javascript"> <!-- //调整 PageContent 的高度 function TuneHeight() { v...(2005-10-28 17:21)
comfill我也刚好碰到这个问题,这段代码没错 但是在把页面中的DOCTYPE声明去掉就可以了(2005-10-28 17:21)
Billy Ao我这里可以自适应高度,使用同样的方法,却不能适应宽度!谁知道什么原因么?(2005-10-28 17:21)
chpn你的代码我试过了,不论是在IE还是在FireFox中都能正常运行 请检查你的iframe是否设了 id=right_space(2005-10-28 17:21)

返回顶部