iframe自动适应连接内容高度的问题
主页http://www.910bbs.com/index.htm
index.htm
<iframe name="main" width="100%" src="http://www.2du8.com/index.htm" frameBorder=0 scrolling=no></iframe>
有一种方面可以..但调用其它域名的页面就不生效.只有调用本域名下的页面才可以
<iframe name="main" width="100%" onload="this.style.pixelHeight=main.document.body.scrollHeight" src="1.htm" frameBorder=0 scrolling=no></iframe>
大家有什么方法吗..
或是在www.2du8.com/index.htm 加什么语句
后来在 www.2du8.com/index.htm 加了这语句也没有用
<script>
function init()
{
var s =document.body.scrollHeight;
parent.document.all.iframe_searchkh.style.height=s ;
}
window.onload = init;
</script>