iframe高度自适应
2013-07-04 17:54
246 查看
function iFrameHeight(){ var iframe = document.getElementById("iframeContain"); iframe.height = 0; try{ var bHeight = iframe.contentWindow.document.body.scrollHeight; var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; var height = Math.max(bHeight, dHeight); iframe.height = height; }catch (ex){} }
相关文章推荐
- iframe高度自适应
- html iframe自适应高度的多种方法方法小结
- JavaScript设置IFrame高度自适应(兼容多浏览器)
- iframe随内容页的高度自适应变化
- JQuery实现iframe自适应高度
- Iframe高度自适应
- iframe高度自适应
- 非js实现iframe高度自适应实现
- iframe自适应高度
- iframe自适应高度的插件
- iframe自适应宽度和高度,没有滚动条
- 再谈iframe自适应高度(http://www.cnblogs.com/MaxIE/archive/2008/08/13/1266597.html)
- iframe自适应高度
- Iframe跨浏览器自适应高度完美解决方案
- jquery iframe自适应高度代码(浏览器兼容)
- 解决iframe自适应高度问题
- iframe自适应高度
- 使用javascript实现Iframe自适应高度
- iframe自适应高度
- IFRAME 自适应高度