请问我想让一个DIV以全屏模式显示如果实现,就是网页播放器哪样,全屏后,要按ESC才能恢复

解决方案 »

  1.   

    那种是FLASH...
    网页只能按F11全屏吧...
      

  2.   

    但是播放器是可以的啊,我想DIV应该也行的
      

  3.   

    通过JS把菜单栏,工具栏,状态栏全都去掉,然后DIV最大话;呵呵
      

  4.   

    设置窗体的高度宽度设置为屏幕的最大 不就全屏了
    <script>
    <!--
    function windowopen(){
    var target="http://www.hongen.com"
    newwindow=window.open("","","scrollbars")
    if (document.all){
    newwindow.moveTo(0,0)
    newwindow.resizeTo(screen.width,screen.height)
    }
    newwindow.location=target
    }
    //-->
    </script>
    <form>
    <input type="button" onClick="windowopen()" value="全屏显示" name="button">
    </form>
      

  5.   

    div是页面的一个元素,它不可能超出页面的显示区域。
    播放器是flash,flash是可以实现全屏显示的。
      

  6.   

    var newWin = window.open("","_blank","fullscreen=yes");
    newWin.moveTo(0,0)
    newWin.resizeTo(screen.width,screen.height)
    newWin.focus();
    var doc = newWin.document;
    doc.body.style.overflow = "hidden"
    doc.write("<h2>按ESC退出</h2>");
    doc.onkeypress = function(evt)
    {
    var evt = newWin.event || evt;
    if(evt.keyCode == '27')
    newWin.close();
    }