Can i resize Chrome window using the console?
Is it possible to resize the Chrome window using the developer tool's console? If so, what would the command be? becuase the window.resizeTo(w,h) didn't work for me.
Official Chrome issue says:
By Design we don't support resize/move for tabs, only constrained windows.
Windows in Chrome can be resized via Chrome extensions API, however it's not available from console. You should probably try using one of many 'window resizing' extensions. In the near future it will be possible for extensions to add own console commands, however as for now it's an experimental feature.
我认为你只能调整你从控制台创建的窗口,比如弹出窗口:
var pop=window.open("","","width=1024,height=768");
pop.resizeTo(100,100);
Since Firefox 7, it's no longer possible for a web site to change the default size of a window in a browser, according to the following rules:
window.open.
found on https://developer.mozilla.org/en-US/docs/DOM/window.resizeTo#Notes
some try and error seems to prove that these rules also apply in Chrome.
链接地址: http://www.djcxy.com/p/66978.html上一篇: C / C ++中的低级页面管理器
下一篇: 我可以使用控制台调整Chrome窗口吗?