function  fuFunctiondan(){
var frm=$("#z_div");
var iframeHeight=0;
if (navigator.userAgent.indexOf("Firefox")>0) { // Mozilla, Safari, ...
iframeHeight=window.frames[0].document.body.scrollHeight;
alert(iframeHeight);
iframeHeight=parseInt(iframeHeight)+0;
frm.height(iframeHeight);
$("#MainFrame").height(iframeHeight);
} else if (navigator.userAgent.indexOf("MSIE")>0) { // IE
iframeHeight=MainFrame.document.body.scrollHeight;//IE这里要用,不能用obj,切记
iframeHeight=parseInt(iframeHeight)+parseInt(0);
frm.height(iframeHeight);
$("#MainFrame").height(iframeHeight);
}else {
iframeHeight=MainFrame.document.body.scrollHeight;
iframeHeight=parseInt(iframeHeight)+0;
frm.height(iframeHeight);
$("#MainFrame").height(iframeHeight);
}
}
z_div为iframe 外层div 的id,
MainFrame为iframe 的id ;

最新文章

  1. 报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size
  2. solr6.1-----mysql 数据导入-查询
  3. Match:Power Strings(POJ 2406)
  4. How to create a project with Oracle Policy Modeling
  5. NGUI Draw Calls优化(思路)
  6. IntelliJ IDEA 14.0.2破解注册码文件(2015年06月08日)
  7. 解决Tomcat 7遇到StackOverflowError的异常
  8. Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel 打表数学
  9. 解决IllegalStateException: Can not perform this action after onSaveInstanceState:
  10. J2SE知识点摘记(五)
  11. PHP的环境搭建
  12. 解析 Javascript - this
  13. jQuery链式编程
  14. asp.net mvc cshtml (VIEWS)中怎么提供URL参数:
  15. Vue脚手架使用步骤 2.9.6版本
  16. Linux设备驱动剖析之Input(二)
  17. UVA 10733 - The Colored Cubes(Ploya)
  18. UVA 350 Pseudo-Random Numbers
  19. Delphi XE7的安卓程序如何调用JAVA的JAR,使用JAVA的类?
  20. thinkphp5框架生成二维码(二)

热门文章

  1. leetcode500
  2. angular 路由动态加载JS文件
  3. 打印机 KX-MB788CN 佳能
  4. as3 typeof 对象类型与返回结果对照表 is as
  5. ABAP-关于隐式与显式的DB Commit
  6. js--语音播报
  7. Haskell语言学习笔记(66)Aeson
  8. JAVA动态性之一一反射机制reflection
  9. 【Linux】svn环境配置
  10. Interrupt handler