如何将IE浏览器窗口的大小调整为1024 x 768

时间:2022-08-19 21:38:51

In Firefox you can enter the following into the awesome bar and hit enter:

在Firefox中,您可以在令人敬畏的栏中输入以下内容并按Enter键:

javascript:self.resizeTo(1024,768);

How do you do the same thing in IE?

你如何在IE中做同样的事情?

5 个解决方案

#1


11  

javascript:resizeTo(1024,768);
vbscript:resizeto(1024,768)

Will work in IE7, But consider using something like

将在IE7中工作,但考虑使用类似的东西

javascript:moveTo(0,0);resizeTo(1024,768);

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...

因为IE7不允许窗口“调整大小”超出屏幕边框。如果您使用1024,768桌面,这就是发生的事情......

  • 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)
  • Firefox:1024x768窗口,位于任务栏后面。如果你放下moveTo部分,窗口的左上角将不会改变位置。(你仍然得到一个1024x768的窗口)

  • 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.
  • IE7:尽可能接近请求的大小而不遮挡任务栏或允许窗口的任何部分位于屏幕边框之外。

  • 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.
  • safari:尽可能接近请求的大小而不遮挡任务栏或允许窗口的任何部分位于屏幕边框之外,但您可以省略moveTo部分。 Safari将为您移动窗口的左上角。

  • Opera: Nothing happens.
  • 歌剧:没有任何事情发生。

  • Chrome: Nothing happens.
  • Chrome:什么都没发生。

#2


10  

Maybe not directly related if you were looking for only a JavaScript solution but you can use the free Windows utility Sizer to automatically resize any (browser) window to a predefined size like 800x600, 1024,768, etc.

如果您只寻找JavaScript解决方案,但可以使用免费的Windows实用程序Sizer自动将任何(浏览器)窗口调整为预定义大小,如800x600,1024,768等,可能没有直接关联。

如何将IE浏览器窗口的大小调整为1024 x 768

#3


3  

Your code works in IE, you just need to "Allow blocked Content" in the Security Toolbar

您的代码在IE中运行,您只需要在安全工具栏中“允许阻止的内容”

如何将IE浏览器窗口的大小调整为1024 x 768

#4


2  

Try:

javascript:resizeTo(1024,768);

This works in IE7 at least.

这至少在IE7中有效。

#5


0  

It works in IE6, but I think IE7 added some security around this?

它适用于IE6,但我认为IE7在这方面增加了一些安全性?

#1


11  

javascript:resizeTo(1024,768);
vbscript:resizeto(1024,768)

Will work in IE7, But consider using something like

将在IE7中工作,但考虑使用类似的东西

javascript:moveTo(0,0);resizeTo(1024,768);

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...

因为IE7不允许窗口“调整大小”超出屏幕边框。如果您使用1024,768桌面,这就是发生的事情......

  • 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)
  • Firefox:1024x768窗口,位于任务栏后面。如果你放下moveTo部分,窗口的左上角将不会改变位置。(你仍然得到一个1024x768的窗口)

  • 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.
  • IE7:尽可能接近请求的大小而不遮挡任务栏或允许窗口的任何部分位于屏幕边框之外。

  • 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.
  • safari:尽可能接近请求的大小而不遮挡任务栏或允许窗口的任何部分位于屏幕边框之外,但您可以省略moveTo部分。 Safari将为您移动窗口的左上角。

  • Opera: Nothing happens.
  • 歌剧:没有任何事情发生。

  • Chrome: Nothing happens.
  • Chrome:什么都没发生。

#2


10  

Maybe not directly related if you were looking for only a JavaScript solution but you can use the free Windows utility Sizer to automatically resize any (browser) window to a predefined size like 800x600, 1024,768, etc.

如果您只寻找JavaScript解决方案,但可以使用免费的Windows实用程序Sizer自动将任何(浏览器)窗口调整为预定义大小,如800x600,1024,768等,可能没有直接关联。

如何将IE浏览器窗口的大小调整为1024 x 768

#3


3  

Your code works in IE, you just need to "Allow blocked Content" in the Security Toolbar

您的代码在IE中运行,您只需要在安全工具栏中“允许阻止的内容”

如何将IE浏览器窗口的大小调整为1024 x 768

#4


2  

Try:

javascript:resizeTo(1024,768);

This works in IE7 at least.

这至少在IE7中有效。

#5


0  

It works in IE6, but I think IE7 added some security around this?

它适用于IE6,但我认为IE7在这方面增加了一些安全性?