javascript - 检测 iPad 上的特定浏览器
我正在寻找一种方法来检测用户是否正在使用 iPad 上的 Opera Mini。我之所以要这样做,是因为 iPad 上的 Opera Mini 不支持 HTML5 的“视频”标签或 Flash。在这种特定情况下,我需要能够在我的视频容器中加载静态图像。
有什么方法可以检测到这个吗?
我已经在使用 ipad 检测,例如:
var isiPad = navigator.userAgent.match(/iPad/i) != null;
if (isiPad){ ... }
现在,我可以获得该特定浏览器吗?
Im looking for a way to detect if the user is using Opera Mini on iPad. The reason why I want to do that is because Opera Mini on iPad does not support HTML5's "video" tag or Flash. I need to be able to have a static image loading in my video container in that specific case.
Is there any way of detecting this??
Im already using the ipad detection like:
var isiPad = navigator.userAgent.match(/iPad/i) != null;
if (isiPad){ ... }
Now, can I get that specific browser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 Modernizr
You could check for
<video>
support directly using Modernizr.我想这会回答你的问题。
我希望这有帮助。
I think this will answer your question.
https://www.handsetdetection.com/features/mobile-browser-detection
I hope this helps.