如何在Opera和Chrome中移动和调整浏览器的窗口大小? [英] How to move and resize the browser's window in Opera and Chrome?

查看:229
本文介绍了如何在Opera和Chrome中移动和调整浏览器的窗口大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种调整方式来调整浏览器的窗口大小,我发现这些:
self.resizeTo(w,h) self.moveTo(x,y) - 这似乎工作得很好,但只在Firefox和IE中(用IE8测试过,我不知道它是如何工作的以前的版本)。
如何在Opera和Chrome中强制执行相同的行为(调整大小和移动)?在这些浏览器中,上述解决方案根本不起作用。没有任何反应, nothing 出现在错误控制台中。

http://code.google.com/p/chromium/issues/detail?id=2091 =nofollow> Chrome ,您可以使用 window.resizeTo(w,h ); 但它不会影响最大化的标签(所以你只能移动和调整弹出窗口的大小)。


I was looking for a way to resize and move the browser's window and I've found these:
self.resizeTo(w, h) and self.moveTo(x, y) - this seems to work perfectly, but only in Firefox and IE (tested with IE8, I don't know how it works in the previous versions). How can I force the same behavior (resizing and moving) in Opera and Chrome? In these browsers the above solution does not work at all. Just nothing happens and nothing appears in the error console.

解决方案

In Opera and Chrome you can use window.resizeTo(w,h); but it won't affect maximized tabs (so you can only move and resize popups).

这篇关于如何在Opera和Chrome中移动和调整浏览器的窗口大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆