请帮助自动调整IFrame [英] Please Help Auto Adjust IFrame
本文介绍了请帮助自动调整IFrame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
// alert('')
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
// alert(obj.style.height);
}
</script>
<title>Untitled Page</title>
</head>
<body>
<iframe src="http://www.asp.net/ajax" frameborder="0" width="100%" scrolling="no" id="iframe" onload="resizeIframe(this)" />
推荐答案
以下链接可以解决您的问题,因为它有浏览器问题
查看此链接以解决您的问题 [ ^ ]
following link can solved your problem because its a browser problem
see this link to solved your problem[^]
这篇关于请帮助自动调整IFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文