如何检测iPhone是否有视网膜显示? [英] How to detect if iPhone has retina display or not?

查看:218
本文介绍了如何检测iPhone是否有视网膜显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检测iPhone是否有视网膜显示器?有可靠的方法吗?无论是纯PHP还是Zend Framework最好的方式。

How can I detect if an iPhone has a retina display or not? Is there a reliable way? Either pure PHP or preferably Zend Framework way of doing this.

推荐答案

你必须考虑到你想要获得客户端这一事实服务器端的信息。

You must consider the fact that you are trying to get client side information on the server side.

您似乎无法使用纯PHP或Zend框架检测到显示。

It would seem that you are unable to detect the display with pure PHP or Zend framework.

此外,您可能从PHP访问的客户端的UserAgent信息基于操作系统,而不是硬件,因此无法帮助您。

It furthermore seems like the UserAgent information from the client, that you might access from PHP is based upon the OS, not the hardware, and thusly does not help you.

您可能有兴趣阅读以下文章,更加雄辩和彻底地解释了这些问题。

You might be interested in reading the following article which much more eloquently and thoroughly explains the issues.

http://www.bdoran.co.uk/2010/07 / 19 /使用javascript-or-php检测iphone4和分辨率 /

祝你好运!

这篇关于如何检测iPhone是否有视网膜显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆