<iframe id="InputDetail" src style="width:100%"></iframe>
<script>//iframe高度自适应,方法
function reinitIframe(thisIframe)
{
var iframe = document.getElementById(thisIframe);
try
{
var bHeight = iframe.contentWindow.document.body.scrollHeight;
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
var height = Math.max(bHeight, dHeight);
iframe.height = height;
//console.log(height);
}
catch (ex)
{}
}
window.setInterval("reinitIframe('InputDetail')", 200);
</script>

参考博客:iframe高度自适应的6个方法

最新文章

  1. zw.delphi不同版本程序运行速度测试
  2. Atitit qzone qq空间博客自动点赞与评论工具的设计与实现
  3. Pyqt QDockWidget 停靠窗体
  4. Selenium2学习-018-WebUI自动化实战实例-016-自动化脚本编写过程中的登录验证码问题
  5. thinkPHP3.2.3完整版 在sae上面的部署
  6. python第一个hello world注意问题!!
  7. Javascript手记-基本类型和引用类型
  8. 聊聊iOS开发中耳机的那点事(监听耳机拔插、耳机线控)-b
  9. css 文本两端对齐
  10. Computer Graphics Thinking–texture tiling
  11. JavaScript快速入门(一)——JavaScript概览
  12. Linq左关联 右关联 内关联
  13. ORACLE_INSERT
  14. shiro的入门实例-shiro于spring的整合
  15. word中正文分栏重新换页问题
  16. tensorflow 学习日志
  17. 我的 FPGA 学习历程(11)—— 实验:按键消抖
  18. nginx是什么,如何使用
  19. CSS3帧动画
  20. .join() ----- 是把列表中的元素用 &quot;xx&quot;.join() 拼接成字符串

热门文章

  1. Android序列化
  2. 微信公众号开发C#系列-10、长链接转短链接
  3. Win32对话框程序(2)
  4. 系列文章|OKR与敏捷(二):实现全栈敏捷
  5. SmartSql Map
  6. Spring Cloud Alibaba基础教程:使用Sentinel实现接口限流
  7. Go channel实现源码分析
  8. 在表单提交之前做校验-利用jQuery的submit方法
  9. 解决html代码文本复制问题,js技术
  10. Ajax常见面试题