How to identify dolphin lite browser from javascript

狂风中的少年 提交于 2019-12-11 06:45:23

问题


I have a widget which unfortunately doesn't display well on Dolphin lite browsers since position:fixed is not supported.

The user agent string I see is :

Mozilla/5.0 (Linux; U; Android 2.2.1; iw-il; X10i TripNMiUI Build/NI1063) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

How can I use this to identify dolphin browsers (any version) ? Or is there another way to do that?

Alternatively I found a code that checks for position=fixed support but it looks risky to incorporate in production. Is there is a safe way to do this that could solve to my problem?

来源:https://stackoverflow.com/questions/9209093/how-to-identify-dolphin-lite-browser-from-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!