if(top != self)
   {
      window.parent.document.getElementById("lframe").height = document.body.scrollHeight;
   } 使用了上面的javascript调解frame的高度正好是全部内容(没有滚动条也能也显示全部)parent里大多都能显示正常,但是就是有些<h1> <h2>框住的部分无法显示了。当然这些h1,h2在css里定义过,有图片的。

解决方案 »

  1.   

    补充
    那个javascipt的代码在window.onload()里
      

  2.   

    试过了好像不行,不过去掉h1的css定义就可以了。
    但是这些不能去掉阿。还有,如果不显示的时候,我使用改变ie的字体大小就可以显示出来了。
    貌似是ie没有做f5类似的操作,只是刷新了界面。 javascript里有这样的东西吗?
      

  3.   

    补充,只有ie6/7不能正常显示h1,h2
    firefox可以正常显示的。
      

  4.   

    if(top   !=   self) 

        window.parent.document.getElementById( "lframe ").height   =   document.body.scrollHeight; 
        location.reload();
    }   
    再试试,然后所那段 css 贴出来看一下
      

  5.   

    帮我看看我的问题
    http://topic.csdn.net/u/20071102/18/a7b61962-fe93-4386-a090-a7fa80f73878.html