如何在Windows XP中将浏览器窗口大小设置为大于屏幕分辨率?

发布于 2024-11-27 18:03:23 字数 189 浏览 3 评论 0原文

我想将浏览器尺寸(主要是宽度)设置为大于 Windows XP 中的屏幕分辨率。看起来没有简单的方法来拖动浏览器窗口并调整其大小。它将大小调整为实际屏幕的最大宽度和高度,但不会更大。

我需要在大屏幕上检查和测试一些网页,但我自己只有一个小笔记本。有没有办法实现更大的浏览器窗口?最好是在 Chrome 中,但 Windows 中的任何浏览器都可以。

I would like to set browser size (mainly width) larger than the screen resolution in Windows XP. It looks like there is no easy way of dragging the browser window and resizing it. It resizes to maximum width and height of the actual screen, but no larger.

I need to check and test some webpages on large screens, but I have only a small notebook of my own. Is there a way how to accomplish a larger browser window? Preferrably in Chrome, but any browser in Windows will do.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

书信已泛黄 2024-12-04 18:03:23

这个问题可以通过两种方式解决: -

1. 通用浏览器解决方案

  1. 创建一个虚拟 html 页面
  2. 在其正文中添加一个 iframe,并将宽度和高度属性设置为所需的尺寸
  3. 将 iframe 的 src 属性设置为要测试的页面

2个别浏览器的开发者工具

Chrome

  1. 使用 Ctrl + Shift + i 打开开发者工具
  2. 单击左上角第二个类似手机的按钮
  3. 将宽度拖动到所需的宽度并刷新页面(F5)。

Internet Explorer

  1. 按 F12
  2. 转到仿真选项卡
  3. 将分辨率下拉列表更改为所需的分辨率
  4. 降低开发人员工具栏的高度,直到出现水平滚动条

Firefox

  1. 使用以下命令打开开发人员工具Ctrl + Shift + i
  2. 按开发人员工具右上角图标中的第三个图标,称为“响应式设计模式”
  3. 在网页视口左上角的左上角下拉选择器中选择分辨率。

This problem can be solved in two ways: -

1. Universal browser solution

  1. Create a dummy html page
  2. Add an iframe to its body with the width and height attributes set to the desired dimension
  3. Set the iframe's src attribute to the page you want to test

2. Individual browser's developer tools

Chrome

  1. Open the developer tools using Ctrl + Shift + i
  2. Click the second button top left that looks like a mobile phone
  3. Drag the width to the desired width and refresh the page (F5)

Internet Explorer

  1. Press F12
  2. Go to the emulation tab
  3. Change the resolution dropdown to the desired resolution
  4. Reduce the height of the developer tools bar until the horizontal scrollbars appear

Firefox

  1. Open the developer tools using Ctrl + Shift + i
  2. Press the third icon in the icons on the top right of the developer tools called "Responsive Design Mode"
  3. Choose the resolution in the top left dropdown selector on the top left of the webpage viewport.
刘备忘录 2024-12-04 18:03:23

我正在通过缩小测试另一种分辨率 - 每个浏览器都支持 ctrl + 和 ctrl -

I am testing another resolution by zoom out - every browser supports ctrl + and ctrl -

携君以终年 2024-12-04 18:03:23

这是可能的。首先“恢复”(即取消最大化)窗口。然后,您可以根据需要使用该特定窗口的边缘来简单地调整浏览器的宽度和高度。
这适用于任何浏览器和应用程序窗口,包括 google-chrome。

似乎这并不适合每个用户。有一个名为 uuspy 的工具可以按照 此处的建议执行此操作。我还没有尝试过如何做到这一点。但是,由于 uuspy 的用户界面看起来不太用户友好,这里有一个快速提示。
打开uuspy。
在主窗口中,您会看到一个搜索框。在此处输入浏览器当前“标题”的前几个字母(例如“测试 - Google 搜索”),然后点击刷新
它将显示在标题栏中包含搜索到的部分标题的进程的窗口和子窗口列表。
单击相关的(根/父级是最有可能的)。然后,单击 GetInfo
那里有两个文本窗格。在左侧窗格中,有 WS_THICKFRAME。取消选择它,然后单击setStyle
这将冻结调整大小。我认为你必须阅读原始的答案才能确切地知道需要做什么。

This is possible. First 'restore' (i.e. unmaximize) the window. Then you can simply adjust the width and height of the browser by using the edges of that particular window as you like.
This applies to any browser and application windows including google-chrome.

It seems like this doesn't work for every user. There's a tool called uuspy to do this as suggested in here. I haven't try on how to do this. But, since the ui of uuspy looks not that user-friendly here's quick tip.
Open uuspy.
There, in the main window, you'll see a search box. Type the first few letters of the current 'title' of the browser there (like 'test - Google Search'), and then click refresh.
It'll show a list of windows and child-windows of processes containing the searched partial title in the title-bar.
Click on the relevant one (the root/parent is the one most likely.) Then, click GetInfo.
There's two text panes there. On the left pane, there's WS_THICKFRAME. unselect it and then click setStyle.
That will freeze the resizing. I think you'll have to read the original SO answer to know exactly what needs to be done.

溺孤伤于心 2024-12-04 18:03:23

简单的!将窗口“恢复”到任意大小,拖动窗口使左下角离开屏幕,然后使用顶部和右侧调整大小以使窗口变得更大。如果您需要更大的窗口,只需再次拖动窗口,使左下角离屏幕更远。

simple! "restore" the window to any size, drag the window so that bottom/left corner is off-screen, then resize using top and right sides to make the window ever bigger. if you need it even bigger, just drag the window again so that bottom/left corner is even further off screen.

云雾 2024-12-04 18:03:23

我设法使用 来自 dandeware.com 的 ScreenSpace(无隶属关系)调整 Chrome 窗口的大小。有免费的精简版和付费版。

安装 Screenspace 后,选择 Chrome 窗口并按 Ctrl-Alt-R。然后,该软件会显示一个虚拟窗口,并允许您在虚拟窗口之外的任何方向上调整 Chrome 窗口的大小。单击绿色复选标记,Chrome 窗口将在物理屏幕上具有相同的大小。

I managed to resize the Chrome window using ScreenSpace from dandeware.com (no affiliation). There's a free lite version as well as a paid version.

After you install Screenspace, select the Chrome window and press Ctrl-Alt-R. The software then shows a virtual window and lets you resize the Chrome window in any direction beyond the virtual window. Click on the green checkmark and the Chrome window will have the same size on your physical screen.

毁梦 2024-12-04 18:03:23

您可以更改浏览器的缩放比例或执行以下操作:

var desiredWidth = 1368;
document.querySelector('html').style.width = desiredWidth+'px';

You can change zoom of the browser or do something like this:

var desiredWidth = 1368;
document.querySelector('html').style.width = desiredWidth+'px';
独孤求败 2024-12-04 18:03:23

在 Firefox 中,响应式设计模式

Menu -> Developer -> Responsive Design Mode (Ctrl-Shift-M)

为您提供了一个下拉列表以选择窗口大小。

响应式设计此页面的分辨率设置为 1920x1080

h ttps://superuser.com/questions/1263519/how-to-create-a-1280x800-screenshot-of-a-chrome-browser-viewport/1263523

In Firefox Responsive Design Mode

Menu -> Developer -> Responsive Design Mode (Ctrl-Shift-M)

gives you a drop-down to select the window size.

responsive design of this page set to 1920x1080

copy of answer to https://superuser.com/questions/1263519/how-to-create-a-1280x800-screenshot-of-a-chrome-browser-viewport/1263523

无边思念无边月 2024-12-04 18:03:23

这是另一个解决方案。
在Linux下你可以毫无阻碍地自由调整窗口大小。它还具有 Mozilla Firefox 和 Google Chrome,并且在功能上几乎与 Windows 版本相同。所以,我的建议是尝试使用 Linux 风格,例如 Ubuntu 或 Linux Mint。也许您也可以通过 LiveCD 尝试一下。这样,您就不必担心安装新操作系统!如果你需要的话我可以帮忙。

而且,我发现这个方便的书签将浏览器大小调整为标准屏幕尺寸,例如 800x600 等。

Here's another solution.
Under Linux you can freely resize the windows without any hindrance. It also has Mozilla Firefox and Google Chrome, and are almost equal in functionality to the Windows versions more or less. So, my suggestion is try this with a Linux flavor such as Ubuntu or Linux Mint. May be you can try this via the LiveCD as well. That way, you don't have to worry about installing a new OS! I can help with that if you need.

And, I found this handy bookmarklet that resizes the browser to standard screen sizes such as 800x600 etc.

淡淡绿茶香 2024-12-04 18:03:23

如果您有双显示器设置并将分辨率设置为较高,那么您可以将较小屏幕上的窗口大小拖动到较大屏幕的大小,这样它就会比较小屏幕更大 - 这就是我的做法与 Windows 7

if you have a dual moniter setup and set the resolution higher on one, then you can drag the size of the window on the smaller screen to the size of the larger so it will get bigger than the smaller screen -this is haw i do it with windows 7

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文