Js controls the height and width of the iframe to make it adaptive to the content

  • 2020-03-30 02:37:23
  • OfStack

 
<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> 

Related articles: