开发者

Detecting NON mobile browsers

开发者 https://www.devze.com 2023-01-16 09:54 出处:网络
So I\'d like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I\'d just like to see if the user is using IE, Firefox, Safari, Chrome, or Ope

So I'd like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I'd just like to see if the user is using IE, Firefox, Safari, Chrome, or Opera; all other users go to the mobile site.

My biggest problem is detecting regular Safari开发者_Go百科 from mobile Safari.

Any good way to do this?


If you'd ask me, if you stay away from Flash/Silverlight applets, and you don't overdo CSS 3 selectors (although as time passes by, this will become less of a problem...), you really don't need to use browser-specific directions.

Using a reset CSS style-sheet would help also. Go see that link for that matters :

http://meyerweb.com/eric/tools/css/reset/

0

精彩评论

暂无评论...
验证码 换一张
取 消