简体   繁体   English

在网站访问时使用 JS/Jquery 调整浏览器窗口大小

[英]Resize browser window with JS/Jquery on website access

I have my first website made some months ago, and it is not responsive.我几个月前制作了我的第一个网站,但它没有响应。 I have built it on 1280x1024px so on larger or smaller screens we can't see it resposnive.我已经在 1280x1024px 上构建了它,所以在更大或更小的屏幕上我们看不到它的响应。 Now, on smaller screens it's ok, I'm not interesting in that, but I have a question: is it possible on larger screens, like 1680x1050px when I open this site to automatically resize the browser window to 1280x1024px with JS or Jquery ?现在,在较小的屏幕上没关系,我对此并不感兴趣,但我有一个问题:是否可以在较大的屏幕上,例如 1680x1050px,当我打开此站点时,使用 JS 或 Jquery 自动将浏览器窗口大小调整为 1280x1024px? Some code to bring the browser to 1280x1024px instead of full-screen of monitor resolution on larger screen ?一些代码将浏览器带到 1280x1024px 而不是全屏显示器分辨率在更大的屏幕上?

Thanks.谢谢。

You could use the resizeTo function.您可以使用 resizeTo 函数。

Here's a link to show how it works这是一个显示其工作原理的链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM