If you're adding your own, enter a name, width, and height for the device, then click Add. On the Settings > Devices tab, either choose a device from the list of supported ones or click Add custom device to add your own. # Add a custom mobile deviceĬlick the Device list and then select Edit. In this example, DevTools shows the frame for the Nest Hub. Note: If you don't see a device frame for a particular device, it probably means that DevTools just doesn't have art for that specific option. Events fired refers to whether the page fires touch or click events when you interact with the page. Cursor icon refers to what type of cursor you see when you hover over the page. Rendering method refers to whether Chrome renders the page as a mobile or desktop viewport. The table below describes the differences between the options. If you can't see the list on the action bar at the top, select More options > Add device type. Use the Device Type list to simulate a mobile device or desktop device. In the action bar at the top of the viewport, select a DPR value from the new DPR drop-down menu. Chrome uses the DPR value when drawing on HiDPI (High Dots Per Inch) displays.Ĭlick More options > Add device pixel ratio. In other words, DPR tells Chrome how many screen pixels to use to draw a CSS pixel. # Set device pixel ratioĭevice pixel ratio (DPR) is the ratio between physical pixels on the hardware screen and logical (CSS) pixels. DevTools opens the Sources panel at the corresponding line in the Editor. To find the corresponding declaration, right-click between breakpoints and select Reveal in source code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |