<iframe src="xxx.html" width="100%" id="iframepage" frameborder="no" scrolling="no" onload="this.height=this.contentWindow.document.body.scrollHeight"></iframe>
在iframe 中插入 οnlοad=“this.height=this.contentWindow.document.body.scrollHeight” 即可实现。
chrome和360浏览器测试有效。