Chrome Console for mobile website debug artifact

Source: Internet
Author: User

Now is really an information-based era, everyone has a smart machine in hand, go to work after walking the car will play mobile phone, on the internet. So as the majority of Web site media, scramble for the mobile phone market is no doubt urgent. For our web front-end engineers, it is imperative to understand and master the task of mobile phone programming. Below for you recommend a relatively good phone debugging software chrome.

Regular debugging of mobile phone site code farmers, will certainly for the phone debugging software and worry, can not find a more appropriate mobile site debugging tools. I accidentally discovered that the chrome console's software settings were all about the size of a variety of phone screens. We just use it to be very convenient to complete the commissioning work.

Here's a look at how Chrome debugs.

1. Open Chrome (The following steps if not successful, please first upgrade Chrome browser)

2. Press F12 to open Developer tools, then click the Settings icon in the lower right corner of developer tools (Figure 1-1)

Figure 1-1

3, click Set icon, you will see a new interface popup, such as (Figure 1-2):

Figure 1-2

4. Click on the appropriate option in the interface shown, and refresh the page to see that Chrome renders the page using the appropriate browser on the corresponding device, (figure 1-3) shows the devices that Chrome can emulate:

Figure 1-3

5, the following is the meaning of each function item of the tool

User agent: Set up the users agent to tell the browser which browser to emulate on which device

Device metrices: When selected, the page size is set according to the user agent, and the default value is the size of the simulation setting.

Fit in window: After a click, the page size is adapted to the window size

Override geolocation: Manually set the latitude and longitude, select to enter a value for latitude and Lat emulate position unavailable used to switch whether the location can be used

Override Device Orientation: Sets the orientation of the devices,

Emulate Touch events: Analog touchscreen event

Emulate CSS media: Simulate CSS style screens such as print Screen TV

Although there are many mobile site debugging tools, but generally need to download the installation, the use of very cumbersome. And Chrome's own features can meet our general mobile site debugging staff needs, why not.

Chrome Console for mobile website debug artifact

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.