<script>
function SetCwinHeight()
{
var cwin=document.getElementById("cwin");
if (document.getElementById)
{
if (cwin && !window.opera)
{
if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight)
cwin.height = cwin.contentdocument.body.offsetHeight; 
else if(cwin.document && cwin.document.body.scrollHeight)
cwin.height = cwin.document.body.scrollHeight;
}
}
}
</script><iframe width="648" align="center" height="425" id="cwin" name="cwin" onload="Javascript:SetCwinHeight()" frameborder="0" scrolling="no" src="http://www.cnat.cn/bjdzqclyb/showguestbook.aspx" target="_blank"></iframe>我用了这段代码控制iframe自动伸缩.可是却出现了2个不同的效果
http://jk.auto.sohu.com/zbzc/qccskj/vw/vw.asp  这个不自动
http://www.cnat.cn/zbzc/qccskj/vw/vw.asp       这个自动小弟很奇怪..所以请各位教教小弟我该怎么改...