比如有上左右结构;右边放iframe。
最重要的是怎样让iframe占满整个区域;根据src文件的大小决定是否显示滚动条
------解决方案--------------------
好吧~~html5的 iframe我还没研究过~
- JScript code
<script type="text/javascript">// < ![CDATA[ // < ![CDATA[ // < ![CDATA[ function setIframe(id){ var iframe = document.getElementById(id); var bHeight = iframe.contentWindow.document.body.scrollHeight; var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; var height = bHeight>dHeight?bHeight:dHeight; iframe.height = height; } // ]]></script>