meta name="viewport" content="target-densitydpi=device-dpi"

Stops Android from performing scaling; that means that you will have to make the necessary adjustments for each density via css and JavaScript.


<meta name="viewport" content="target-densitydpi=device-dpi" />

If you want to modify your web page for different densities, by using the -webkit-device-pixel-ratio css media query and/or the window.devicePixelRatio dom property, then you should set the meta name="viewport" content="target-densitydpi= to device-dpi. This stops Android from performing scaling in your web page and allows you to make the necessary adjustments for each density via css and JavaScript.

Also read...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>