iframe自适应内容高度的处理方法
来源:互联网 发布:iphone5s联通4g网络 编辑:程序博客网 时间:2024/05/01 12:41
在页面中
<iframe src="xx.html" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="765" height=100% id="iframepage" name="iframepage" onLoad="iFrameHeight()" ></iframe>
添加js代码
<script type="text/javascript" language="javascript"> function iFrameHeight() { var ifm= document.getElementById("iframepage"); var subWeb = document.frames ? document.frames["iframepage"].document :ifm.contentDocument; if(ifm != null && subWeb != null) { ifm.height = subWeb.body.scrollHeight; } }</script>
0 0
- iframe自适应内容高度的处理方法
- 开发小技巧:jQuery处理自适应内容高度的iframe
- 开发小技巧:jQuery处理自适应内容高度的iframe
- iframe自适应高度的方法
- iframe 自适应内容高度
- iframe 自适应内容高度
- iframe高度自适应内容
- iframe高度自适应内容
- IFrame自适应内容高度
- Iframe自适应其加载的内容高度
- Iframe自适应其加载的内容高度
- Iframe自适应其加载的内容高度
- Iframe自适应其加载的内容高度
- Iframe自适应其加载的内容高度
- Iframe自适应其加载的内容高度
- iframe自适应高度的多种方法方法
- iframe 自适应高度,更改内容时iframe高度怎么根据新的内容高度自动改变
- IFrame根据内容自适应高度
- 连连看的布局代码(wpf)
- 使用Tengine代替nginx作为web server
- PhoneGap与Cordova之间的关系
- Word Search
- oracle11g 相关链接
- iframe自适应内容高度的处理方法
- 大数类
- 第八十八题(金山笔试题,字符串移动)
- word插入图片显示不完整的解决办法
- MTK Android Driver :sound
- Evaluate Reverse Polish Notation
- 关于JAVA中事件分发和监听机制实现的代码实例-绝对原创实用
- 今日作息及食谱(7.5)
- 被卡住的进度条