Viewport simulation with Device Metrics on Chrome
When building or modeling a responsive web page, you need to check the site in multiple viewport sizes (the view - the part that the user will see the content of the web page displayed) to check it layout and pages are displayed well. There are several ways to do this, such as using Adobe Edge Inspect or browser extensions like Dimensions for Chrome .
The problem is that these tools do not always work smoothly in all cases.Adobe Edge Inspect requires that laptops and mobile devices be connected to the same wireless network. XIP.io also requires devices to connect to the Internet and in many people's experience, it is difficult to debug responsive websites according to iframes or to resize the browser window multiple times.
Simulation of viewport size with Device Metrics
Google Chrome recently introduced a new integration feature, which can fix all the issues mentioned above. This new feature is called Device Metrics . To activate Device Metrics, open the Developer Tools Setting .
Go to the Override control panel . Select Device metrics and you can specify the size for viewport.
The result will be displayed immediately.
You can swap the length with width and height by clicking the button next to the input fields.
If you are unsure of the screen resolution used, you can also change the browser User Agent . And the fields that enter the screen size will be filled in with the actual viewport size from the selected User Agent .
For example, selecting " Android 2.3 - Nexus S " will set the size to 480 x 800pixel, selecting " iPad - iOS5 " will set it to 1024 x 728pixel.
You can find a full list of mobile device viewport sizes in Screensiz.es.
Google Chrome has many useful features to streamline the development process. Now, by using Device Metrics, you can debug the site to have a specific viewport size without having to deal with a restricted connection, use a third-party browser extension or search. iframe.
Hope you are succesful.
You should read it
- Autodesk launches new digital simulation software
- The best solar system simulation software
- The new computer model clearly explains the strange trajectory of the Moon
- Summary of cooking games or on the phone
- CASIO FX-570MS computer simulation software
- Head element in HTML
- Car Simulator 2: How to play the car simulation game on the phone
- Simulation equipment shows that the face of the Earth has a new continent after another 250 million years
May be interested
- The new computer model clearly explains the strange trajectory of the Moonbelow is a simulation of a dramatic history of the earth-moon duo.
- Summary of cooking games or on the phonecooking simulation game on the phone will bring to the cooking world in many interesting ways.
- How to Reinstall Google Chromeif you're having trouble with google chrome, reinstalling the program is probably the simplest way to solve the problem. to reinstall chrome, you must first uninstall the old program and download the latest installer from the chrome website. you cannot reinstall chrome on android if it is pre-installed on the device.
- Instructions for syncing Chrome data on multiple devicesif you switch between different devices or computers, you must be very upset when your browser data is locked while transferring the device. however, if you use chrome, you can use the synchronous system that google has included in their web browser. let's see how to synchronize chrome data between multiple devices!
- The human brain simulation chip consumes almost no energy when there is no input informationa group of chinese and swiss scientists collaborated to develop a human brain simulation chip called speck. this chip simulates human brain neurons and synapses, consuming extremely low power at rest, only 0.42 milliwatts.
- 5 strengths and 5 weaknesses of Chrome OSas described, the chrome os computer will be completely different from the current netbook computer, the device is a small mobile internet connection.
- How to sync Chrome browser bookmarks on computer with mobile phone?if you are using google chrome browser on your computer and mobile device. in some cases you bookmark certain websites on your computer and you want to sync with your mobile device for more convenience, you can still do it. in the article below, network administrator will guide you how to sync chrome browser bookmarks on your computer with your mobile phone.
- Why Use Chrome Instead of Safari on iPhone?from cross-device sync and a simpler user interface to seamless integration with google's suite of apps, here are the reasons why you should choose chrome over safari on iphone.
- How to add IDM to Chrome, install IDM for Chromeinstalling idm into chrome makes downloading easier when chrome does not automatically download files. here are the steps to add idm to chrome in detail, please refer to dentist.
- CASIO FX-570MS computer simulation softwarecasio fx-570ms computer simulation software. with the creativity of the programmers, we can bring the casio fx-570ms pocket calculator to our computers with the same interface and math solving function as the casio fx-570ms handheld model.