[英]test website on different screen resolution
One user reported me that on his 11 inch macbook air all messed up. 一位用户向我报告说,在他的11英寸Macbook播放器上,一切都弄糟了。 Now I do not have idea how can I fix that. 现在我不知道该如何解决。 Maybe there is some tools that I can use to emulate 11 inch macbook air? 也许有一些我可以用来模拟11英寸Macbook air的工具? Thanks 谢谢
If you're using Firefox 15 or later, you can use the responsive design view by pressing Ctrl-Shift-M or going to the Firefox menu -> Web Developer -> Responsive Design View. 如果你使用Firefox 15或更高版本,可以使用响应式设计视图按Ctrl-Shift-M键或去Firefox菜单- > Web开发- >自适应设计视图。 That lets you easily resize the page (from a list of common resolutions, or arbitrarily by dragging the edges) without having to resize your browser window (as well as letting you resize it larger than your window). 这样一来,您就可以轻松地调整页面大小(从常用分辨率列表中选择,或者通过拖动边缘任意调整),而不必调整浏览器窗口的大小(也不必使浏览器窗口的大小大于窗口的大小)。 Other browsers might have a similar feature, but I'm not sure. 其他浏览器可能具有类似的功能,但我不确定。
If you press Ctrl + Shift + M in your keyboard on, Mozilla Firefox
and/or Google Chrome
, then they will launch the Responsive Design View
(Firefox) or Device Toolbar
(Chrome) mode. 如果您在Mozilla Firefox
和/或Google Chrome
键盘上按Ctrl + Shift + M ,则它们将启动Responsive Design View
(Firefox)或Device Toolbar
(Chrome)模式。 Here you can manually adjust the window width and height to a match any device dimensions you wish, or you can also select from a set of preset device dimension options. 您可以在此处手动调整窗口的宽度和高度,以匹配所需的任何设备尺寸,也可以从一组预设的设备尺寸选项中进行选择。 It also gives the option to view the selected dimensions in either landscape/ portrait mode (for portable devices such as mobile or tablets) to see how a/your website would look in those different orientations. 它还提供了以横向/纵向模式(对于便携式设备,例如移动设备或平板电脑)查看所选尺寸的选项,以查看您的网站在不同方向上的外观。
I am not sure about any other browsers, but you can try to use the above keyboard shortcut, on another browser of your choice and see if it works there aswell. 我不确定是否有其他浏览器,但是您可以尝试在所选的其他浏览器上使用上述键盘快捷键,并查看它是否也可以正常使用。
Alternatively you can manually toggle the Responsive Design View
(Firefox) or Device Toolbar (Chrome) modes, by navigating to: 或者,您可以通过导航到以下方式来手动切换Responsive Design View
(Firefox)或设备工具栏(Chrome)模式。
Firefox 59 火狐59
Menu (hamburger icon on top right) > Web Developer > Responsive Design Mode
Chrome 65 铬65
Menu (Three-dot icon on top right) > More Tools > Developer Tools
OR 要么
Simply press Ctrl + Shift + I to launch the Developer Tools 只需按Ctrl + Shift + I启动开发人员工具
Once the Developer Tools has launched click on the toggle device toolbar
icon on the top-left corner of the Developer Tools menu, to view the webpage in responsive design view. 开发人员工具启动后,单击“开发人员工具”菜单左上角的toggle device toolbar
图标,以在响应式设计视图中查看网页。
Again, I am only aware of doing this in Mozilla Firefox
and Google Chrome
, so other browsers may have a similar or different approach. 同样,我只知道在Mozilla Firefox
和Google Chrome
中执行此操作,因此其他浏览器可能具有相似或不同的方法。
UPDATE 更新
Edge Browser (Windows 10) 边缘浏览器(Windows 10)
Use the keyboard shortcut Ctrl + SHIFT + I , OR navigate to Menu (three-dot icon on top right) > F12 Developer Tools
to open the developer tools Menu, then go to the Emulation
tab to see options for customising the window to different device size and dimensions. 使用键盘快捷键Ctrl + SHIFT + I , 或导航至Menu (three-dot icon on top right) > F12 Developer Tools
以打开开发人员工具菜单,然后转到Emulation
选项卡以查看用于将窗口定制为其他设备的选项大小和尺寸。
First, you do not need to emulate a 11 inch screen but the screen resolution because no matter the inch of the screen, resolution can have multiple values. 首先,您不需要模拟11英寸的屏幕,而是模拟屏幕分辨率,因为无论屏幕的英寸是多少,分辨率都可以有多个值。
I would suggest you to use a pluggin like "web developper" available for firefox and chrome (don't know for others), it will help you to resize your browser in different resolutions for testing. 我建议您使用可用于firefox和chrome的插件,例如“ web developer”(不为他人所知),它将帮助您以不同的分辨率调整浏览器的大小以进行测试。
chrome : https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm chrome: https : //chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm
firefox : https://addons.mozilla.org/fr/firefox/addon/web-developer/ Firefox: https : //addons.mozilla.org/fr/firefox/addon/web-developer/
You can also use web app to test your site at different screen resolutions. 您还可以使用网络应用以不同的屏幕分辨率测试您的网站。 http://whatismyscreenresolution.net/multi-screen-test http://whatismyscreenresolution.net/multi-screen-test
This tool is really good and apart from testing your site for MacBook Air, you can also test it for different device resolutions 这个工具非常好,除了可以测试您的MacBook Air网站之外,您还可以针对不同的设备分辨率测试它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.