通过ifame指向的页面高度调整iframe的高度

时间:2006-10-05    点击:163   
通过ifame指向的页面高度调整iframe的高度
1.htm的代码:  
<iframe  src=2.htm  id=ifrm></iframe>  

2.htm的代码:   
<script>  
function  resize()  
{parent.document.all.ifrm.height=document.body.scrollHeight;
parent.document.all.ifrm.width=document.body.scrollWidth;
}  
</script>
<body  onload="resize()">  
</body>
js几个不错的函数 $$()
激活 ActiveX 控件
自动更新作用
许愿墙中用到的函数
解放web程序员的输入验证
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved