简单iframe高度自适应代码 1 js函数
function adjustFrameHeight(obj) { var doc = obj.document||obj.contentWindow.document; obj.height=doc.documentElement.scrollHeight;}
<iframe src="url" onload="adjustFrameHeight(this);"></iframe>