ITPub博客

首页 > IT职业 > IT图书 > iframe高度自适应的IE的解决方法

iframe高度自适应的IE的解决方法

IT图书 作者:cookye 时间:2021-09-09 09:11:11 0 删除 编辑

iframe高度自适应的IE解决方案主页面main.html 

html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    New Document 
    

    

    iframe之前的文字
         
iframe之后的文字

 

 框架子页frm.html

html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    New Document 

    

     
    
        
        iframe变长
        iframe变长
        iframe变长
        iframe变长
        iframe变长
        iframe变长
        iframe变长
        iframe变长
        iframe变长
    
    


子页面2: frm2.html

html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    New Document 

    返回frm.html

在IE8上失效(不过IE8上可以通过设置源代码的Meta,让IE8以兼容性视图浏览,也算是一种IE8下的解决办法)。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1369/viewspace-2808451/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    91
  • 访问量
    502