<iframe style="width:810px;position: relative;top: -30px;left: -25px;min-height:650px;"
onload="this.height=this.contentWindow.document.documentElement.scrollHeight"
scrolling ="auto" frameborder="0" id="myFrame" name="myFrame"
src="/wenling/checkUpCenter.htm?action=query" >
</iframe>
**代码如上图所示;**
在ie8下
显示正常,iframe的高度由内部元素决定没有多余滚动条;
在火狐和谷歌下
iframe高度读取到“0”,页面高度显示是650px,如下图所示:
十分费解,希望有大神可以帮忙解答,感激不尽!