iphone 屏幕的实际分辨率是多少
what is the actual resolution of an iphone screen
我正在开发要在 Iphone 上查看的网页。要在 iPhone 上获得准确的分辨率
我测试了以下代码行。
pageWidth = $j(document).innerWidth();
alert(pageWidth);
根据
http://www.iphoneresolution.com/ 我的 Iphone 5 有 640px 宽度,
但是当我执行我的代码时,我收到以下警报。
这张图片来自模拟器,我在我的 Iphone 上得到了同样的图片
有人能告诉我这是什么吗?
谢谢
screen.width
将为您提供设备屏幕的宽度。
您还需要注意,设备的分辨率与网页显示的分辨率不一致。
我正在开发要在 Iphone 上查看的网页。要在 iPhone 上获得准确的分辨率 我测试了以下代码行。
pageWidth = $j(document).innerWidth();
alert(pageWidth);
根据 http://www.iphoneresolution.com/ 我的 Iphone 5 有 640px 宽度,
但是当我执行我的代码时,我收到以下警报。
这张图片来自模拟器,我在我的 Iphone 上得到了同样的图片
有人能告诉我这是什么吗?
谢谢
screen.width
将为您提供设备屏幕的宽度。
您还需要注意,设备的分辨率与网页显示的分辨率不一致。