高度
<iframe name="frameName" src="you url" frameborder="0" scrolling="auto" width="100%" height="100%" οnlοad="this.height=frameName.document.body.scrollHeight" ></iframe>
宽度
<iframe name="frameName" src="you url" frameborder="0" scrolling="auto" width="100%" height="100%" οnlοad="this.width=frameName.document.body.scrollWidth" ></iframe>