ifrome scroll bar is hidden, highly adaptive
Internet looking for a long time and found that the easiest way
<iframe id="mainIframe" onload="this.height=this.contentWindow.document.documentElement.scrollHeight" width="100%" frameborder="no" border="0" scrolling="no" src="xxxx"> </iframe>
οnlοad=“this.height=this.contentWindow.document.documentElement.scrollHeight”
οnlοad=“this.height=this.contentWindow.document.documentElement.scrollHeight”
οnlοad=“this.height=this.contentWindow.document.documentElement.scrollHeight”