Iframe自适应高度
2009-03-30 16:01
218 查看
<iframe src="news.htm" id="newsiframe" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="100%" onload="this.height=0;var fdh=(this.Document?this.Document.body.scrollHeight:this.contentDocument.body.offsetHeight);this.height=(fdh>10?fdh:10)"></iframe>
注:onload字段中的数值“10”为Iframe最低高度值,可自定义!
注:onload字段中的数值“10”为Iframe最低高度值,可自定义!
相关文章推荐
- iframe高度自适应内容
- iframe自适应父窗口高度改变兼容IE firefox
- 关于iframe内页高度自适应
- jquery 实现iframe 自适应高度
- [转载]再谈iframe自适应高度
- 解决IFrame高度自适应
- 兼容多浏览器的iframe自适应高度(ie8 、谷歌浏览器4.0和 firefox3.5.3)
- 【转载】iframe自适应高度详解(转帖)
- iframe自适应高度的多种方法方法小结
- iframe自适应高度
- iframe自适应高度,多层嵌套iframe自适应高度的解决方法
- 网页布局中iframe高度自适应问题总结
- iframe自适应高度 iframe
- iframe自适应高度
- 实现iFrame自适应高度,原来很简单!
- Iframe自适应高度
- 【转】真正的iframe高度自适应(兼容IE,FF,Opera)
- 真正解决iframe自适应高度
- iframe自适应高度
- 嵌套自适应调整所有iframe的高度