B2G/QA/Tips And Tricks: Difference between revisions

fix typo
(Add find pixel ratio under tips)
(fix typo)
Line 325: Line 325:


== Find the Pixel Ratio ==
== Find the Pixel Ratio ==
In WebIDE, Runtime choose your device(it needs to turn on the debugging via USB from device in Developer's page of Settings app) then Open the system app. In the concole tab, enter "window.devicePixelRatio" in command line to get the pixel ratio of screen.
In WebIDE, Runtime choose your device(it needs to turn on the debugging via USB from device in Developer's page of Settings app) then Open the system app. In the console tab, enter "window.devicePixelRatio" in command line to get the pixel ratio of screen.
<gallery>
<gallery>
File:PixelRatio.jpeg
File:PixelRatio.jpeg
Confirmed users
94

edits