js控制iframe的高度/宽度让其自适应内容
内容摘要
复制代码 代码如下: <mce:script language= "Javascript "><!--
window.onload=function() { parent.document.all("iframe1").style.height = document.body.scrollHeigh
window.onload=function() { parent.document.all("iframe1").style.height = document.body.scrollHeigh
文章正文
复制代码 代码如下:
<mce:script language= "Javascript "><!--
window.onload=function()
{
parent.document.all("iframe1").style.height = document.body.scrollHeight;
parent.document.all("iframe1").style.width = document.body.scrollWidth;
}
// --></mce:script>
代码注释