Home > Article > Web Front-end > js controls the height/width of iframe so that it adapts to the content
<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>
For more js control of the height/width of the iframe so that it can adapt to the content, please pay attention to the PHP Chinese website!