detect actual Android or iphone display resolution
Posted on 2013-12-21
The device pixel ratio is 1.5 , So it should be reported in unit of point (pt) for those width and height, right ? And what is the best way to detect the phone device resolution ?
So I try to test it and put the background image well fit into the body of html5 page
using css with background-size:720pt 1281pt ; (i.e 480*1.5pt 854*1.5pt) But it just almost close to fit to the whole body becoz the width of display image is not like 480*1.5pt , it seems like the width is 440*1.5pt and the image height is well fitted .So I believe what I wrote above might be something wrong, Please point it out if so,