[Tools] Create your own mobile emulator device by using Chrome dev tool

Posted Answer1215

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Tools] Create your own mobile emulator device by using Chrome dev tool相关的知识,希望对你有一定的参考价值。

Using the New Device Emulation Interface

The Device Emulation interface changed a bit with the newer version of Chrome Dev Tools. Here are the instructions for emulating the required device characteristics in the new UI:

  1. Select Edit from the Responsive drop-down menu.
  2. Select Add custom device.
  3. Give the device a unique name in the Device name field.
  4. Fill in the fields for Width, Height, Device pixel ratio and User agent string.
  5. Select Add.

Here is the user-agent:

Mozilla/5.0 (Linux; android 5.0; Nexus 6 Build/XXX00x) AppleWebKit/537.36 (Khtml, like Gecko) Chrome/39.0.2171.59 Mobile Safari/537.36

 

以上是关于[Tools] Create your own mobile emulator device by using Chrome dev tool的主要内容,如果未能解决你的问题,请参考以下文章