通过ifame指向的页面高度调整iframe的高度
今天图老师小编给大家展示的是通过ifame指向的页面高度调整iframe的高度,精心挑选的内容希望大家多多支持、多多分享,喜欢就赶紧get哦!
1.htm的代码:
iframe src=2.htm id=ifrm/iframe
2.htm的代码:
script
function resize()
{parent.document.all.ifrm.height=document.body.scrollHeight;
parent.document.all.ifrm.width=document.body.scrollWidth;
}
/script
body onload="resize()"
/body


