Simulate the chrome browser on the computer side as the mobile phone side

1. Prepare user-agent:

	Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1

2. Open the browser, keyboard F12, enter'check'

3. Click Settings, select Devices, and add custom devices

Insert picture description here

4. Set parameters

Insert picture description here

5. Close the setting, go back to the developer and click on the phone icon

Insert picture description here

6. Results display

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44429965/article/details/109328305