方法很多啦,但是觉得这个最简单
<iframe src="
http://www.baidu.com" width="100%" height="100%" οnlοad="this.style.height=this.document.body.scrollHeight;this.style.width=this.document.body.scrollWidth" ></iframe>
转载于:https://blog.51cto.com/alice/165363