I’ve JUST gotten a bit confused.
I’m using Jquery mobile and:
<meta content='width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no' name='viewport'>
I outputted
alert(Data.$activePage.find('div[data-role=content]').width());
and using my iPhone 4 I got 480×320, I was expecting 960×480, as per: http://www.iphoneresolution.com/
Could anyone explain to me what is going on here? I need to make sure my beast looks good in iPhone 3,4, ipad safari and was expecting they had diff resolutions
iPhone 4 has a higher technical resolution, this is true. However, it still reports and scales as though it were 480×320. Just pretend that it’s the same as your iPhone 3 for interface purposes. The trick to dealing with with the higher resolution is that your will need to use higher resolution images for them to look as crisp as possible. For instance, if you have a div with an image background, on the iphone 4 you’d want to use an image with a higher resolution in your CSS.
For Example: