if (window.screen){ 
window.moveTo(0, 0);
window.resizeTo(screen.availWidth,screen.availHeight);
}http://www.MicroSystem.cn

解决方案 »

  1.   

    crore(阿慧南) 你好,
    我的代码是这样的:
    <script>
    window.open ('page.html', '', 'top=0, left=0,toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
    </script>应该如何修改?
      

  2.   

    加上"fullscreen=yes"试一下:<script>
    window.open ('page.html', '', 'top=0, left=0,toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no,fullscreen=yes');
    </script>
      

  3.   

    andymu077(明治佐玛戒--秀曼)你好,我不是要全屏的效果,只是要最大化的效果。
      

  4.   

    window.open ('test.html', '', 'top=0, left=0,toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no,fullscreen=yes');
      

  5.   

    改变窗体的height和width的值吧,但不是最大化,却能做成和最大化差不多的样式
      

  6.   

    <object id=hh1 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">             <param name="Command" value="Minimize"></object>
                <object id=hh2 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">             <param name="Command" value="Maximize"></object>
                <OBJECT id=hh3 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
                <PARAM NAME="Command" VALUE="Close"></OBJECT>
                <input type=button value=最小化 onclick=hh1.Click()>
                <input type=button value=最大化 onclick=hh2.Click()>
                <input type=button value=关闭 onclick=hh3.Click()>
      

  7.   

    在新要打开的页面加上,下面这段代码:
    <script language=javascript>
    self.resizeTo(screen.availHeight,screen.availHeight);
    self.moveTo(0,0);
    </script>
      

  8.   

    更正楼上的
    在新要打开的页面加上,下面这段代码:
    <script language=javascript>
    self.resizeTo(screen.availWidth,screen.availHeight);
    self.moveTo(0,0);
    </script>