TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to Detect iPad Mini Using Javascript (new method)

23 点作者 konstruktors超过 12 年前
Update: It looks like these values are reporting viewport width and height at the time of tab creation and are not updated on rotation.

4 条评论

paulsutter超过 12 年前
According to the SO item in the other thread:<p>"This is a detector of how many tabs are open. On my iPad 3 it reports different values when I have more than one tap open, matching the reports on the screen captures. The iPad mini screen capture has two tabs open, while the iPad 2 capture has only one. My iPad 3 reports matching values when I have one or two tabs open. – Mr. Berna 12 mins ago"
ankitaggarwal超过 12 年前
I don't think it works.<p>This is a screenshot from my iPad 2: <a href="http://i.imgur.com/eEzki.jpg" rel="nofollow">http://i.imgur.com/eEzki.jpg</a>
Tyrannosaurs超过 12 年前
Question / concern here is why is it reporting this differently when in theory they should be the same?<p>It feels like something that might be "fixed" in a future release.<p>Unless anyone knows of a specific reason why this should be the case?
评论 #4783425 未加载
konstruktors超过 12 年前
Update: It looks like these values are reporting viewport width and height at the time of tab creation and are not updated on rotation.