码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-02-15 17:16:42      阅读:357      评论:0      收藏:0      [点我收藏+]

标签:src   device   unique   mob   ima   width   apple   pre   log   

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

标签:src   device   unique   mob   ima   width   apple   pre   log   

原文地址:https://www.cnblogs.com/Answer1215/p/8449615.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!