iOS 5.0 用户代理字符串是什么?
iOS 5.0 用户代理字符串是什么?
这是 iOS 4.0 用户代理:什么是 iPhone 4 用户代理?
What is the iOS 5.0 user agent string?
Here is the iOS 4.0 user agent: What is the iPhone 4 user-agent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
iPhone:
iPad:
iPhone:
iPad:
该网站似乎保留了仍在维护的完整列表
iOS 2.0 - 5.1 的 iPhone、iPod Touch 和 iPad .1(迄今为止)。
您确实需要从页面列中列出的信息中组合出完整的用户代理字符串。
This site seems to keep a complete list that's still maintained
iPhone, iPod Touch, and iPad from iOS 2.0 - 5.1.1 (to date).
You do need to assemble the full user-agent string out of the information listed in the page's columns.
我在 用户代理字符串 中找到了更完整的列表。顺便说一句,这个网站不仅仅有 iOS 用户代理字符串。此外,主页将为您“分解”当前浏览器的用户代理字符串。
I found a more complete listing at user agent string. BTW, this site has more than just iOS user agent strings. Also, the home page will "break down" the user agent string of your current browser for you.
通过擦除小写字母“iphone os 5_0”而不是“iPhone OS 5_0”的字符串来修复我的代理字符串评估。现在,当大写擦除失败时,我正在正确地将 iOS 5 特定类分配给我的 html。
fixed my agent string evaluation by scrubbing the string for LOWERCASE "iphone os 5_0" as opposed to "iPhone OS 5_0." now i am properly assigning iOS 5 specific classes to my html, when the uppercase scrub failed.
我使用以下方法来检测不同的移动设备、视口和屏幕。对我来说效果很好,可能对其他人有帮助:
window.devicePixelRatio
是设备上物理像素和设备无关像素(下降)之间的比率。window.devicePixelRatio
= 物理像素/下降。更多信息此处。
I use the following to detect different mobile devices, viewport and screen. Works quite well for me, might be helpful to others:
window.devicePixelRatio
is the ratio between physical pixels and device-independent pixels (dips) on the device.window.devicePixelRatio
= physical pixels / dips.More info here.