如何将IE浏览器窗口的大小调整为1024 x 768
问题描述:
在Firefox中,您可以在真棒栏中输入以下内容并按Enter键:
In Firefox you can enter the following into the awesome bar and hit enter:
javascript:self.resizeTo(1024,768);
你如何在IE中做同样的事情?
How do you do the same thing in IE?
答
javascript:resizeTo(1024,768);
vbscript:resizeto(1024,768)
可以在IE7中使用,但考虑使用像
这样的东西>Will work in IE7, But consider using something like
javascript:moveTo(0,0);resizeTo(1024,768);
因为IE7不允许窗口调整大小超出屏幕边界。如果你在1024,768桌面上工作,这就是...
- Firefox:1024x768窗口,在任务栏后面。如果你放下moveTo部分,窗口的左上角将不会改变位置。(你仍然得到一个1024x768的窗口)
- IE7:尽可能接近请求的大小而不是遮挡任务栏或允许窗口的任何部分位于屏幕边框之外。
- safari:尽可能接近请求的大小而不会遮挡任务栏或允许窗口的任何部分超出屏幕边框,但你可以省略moveTo部分。 Safari将移动窗口的左上角。
- Opera:没有任何反应。
- Chrome:没有任何反应。
- Firefox: 1024x768 Window, going behind the taskbar. If you drop the moveTo part, the top left corner of the window won't change position.(You still get a 1024x768 window)
- IE7: As close as possible to the requested size without obscuring the taskbar or allowing any part of the window to lie beyond the screen borders.
- safari: As close as possible to the requested size without obscuring the taskbar or allowing any part of the window to lie beyond the screen borders, but you can ommit the moveTo part. Safari will move the top left corner of the window for you.
- Opera: Nothing happens.
- Chrome: Nothing happens.
because IE7 doesn't allow the window to "resize" beyond the screen borders. If you work on a 1024,768 desktop, this is what happens...