<iframe style="position:abosulute;top:"+screen.availHeight/2+";left:"+screen.availWidth/2+";"></iframe>

解决方案 »

  1.   

    用绝对定位试试
    <script>
    function fixSize() {
    document.all.myframe.style.top = 100 + document.body.scrollTop;//请自己行调整数值
    document.all.myframe.style.left = 100 + document.body.scrollLeft;//请自己行调整数值}
    window.onresize = fixSize;
    </script>
    <iframe id=myframe name="middle" width="100%" height="305px" scrolling="AUTO" frameborder="NO" src="test.html" style="position:absolute;"></iframe>
      

  2.   

    IFRAME是相对于IE窗口居中,而不是某个FRAME里居中.
      

  3.   

    不管是IFRAME,还是layer,还是别的什么,只要能在IE中间就可以.
      

  4.   

    <iframe width=500 height=300 style="position:absolute;top:expression((document.body.clientHeight-this.height)/2);left:expression((document.body.clientWidth-this.width)/2)"></iframe>