IFRAME高度自适应.报表IREPORT

<script type="text/javascript" language="javascript">
function iFrameHeight() {
var ifm= document.getElementById("reportIframe");
var subWeb = document.frames ? document.frames["reportIframe"].document : ifm.contentDocument;
if(ifm != null && subWeb != null) {
ifm.height = subWeb.body.scrollHeight + 100;
}
}
</script>

猜你喜欢

转载自blog.csdn.net/vs0layer/article/details/51669829
今日推荐