- <script language="javascript">
- function autoResizeIframe() {
- var fheight;
- fheight = window.zxpage.document.body.scrollHeight;
- if (fheight<=500)
- fheight = 550;
- document.getElementById("zxpage").height = fheight+50;
- }
- </script>
- <iframe name="zxpage" src1="/zx/xx.asp" id="zxpage" onload="javascript:autoResizeIframe()" width="100%" style="border: none;"></iframe>
- //该片段来自于http://www.codesnippet.cn/detail/2012201615202.html
来源: http://www.codesnippet.cn/detail/2012201615202.html