简体   繁体   English

用jQuery更改屏幕的大小或分辨率

[英]change size or resolution of screen with jquery

can we change size of screen of browser with jquery or something else that affect CSS media screen? 我们可以通过jquery或其他影响CSS媒体屏幕的方法来更改浏览器的屏幕大小吗?

i want to test my responsive site with default resolutions. 我想使用默认分辨率测试我的响应式网站。 i have to change windows screen resolution now. 我现在必须更改Windows屏幕分辨率。

how do http://groundwork.sidereel.com/?url=home change size of screen? http://groundwork.sidereel.com/?url=home如何更改屏幕尺寸? -please look at top of front page. -请查看首页顶部。

This has nothing to do with changing the screen size. 这与更改屏幕大小无关。

You can set size in CSS or JS. 您可以在CSS或JS中设置尺寸。 So: "when the document has a width/height of x do a, etc" 因此:“当文档的宽度/高度为x时,执行a,依此类推”

It looks like it changes the resolution, but it doesn't. 看起来它改变了分辨率,但是没有改变。

Check out CSS viewports 查看CSS视口

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

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