<iframe id="myiframe" frameborder=no marginwidth=0 marginheight=0 width="100%" scrolling="no"
src="./dome.html"></iframe>
// iframe高度根据该内容适配
window.onload = function () {
_this.setIframeHeight(document.getElementById('myiframe'));
};
// iframe高度根据该内容适配
function setIframeHeight(iframe) {
if (iframe) {
var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
if (iframeWin.document.body) {
iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
}
}
},