本文介绍了如何检测移动浏览器功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个动员网站的三个不同版本,并且随着市场上充斥着越来越多的手机,我正努力跟上知道将手机推向何方的步伐.我想知道是否有人遇到过类似的问题,如何检测浏览器类型,并转发到动员网站的适当版本(这里是文本,简单html,高级html和javascript).我很想听听别人尝试过的其他解决方案.

I have three different versions of a mobilized website, and as the market is flooded with more and more phones, I'm struggling to keep up with knowing where to push them. I'm wondering if anyone has faced a similar issue, of how to detect the browser type, and forward to the appropriate version of the mobilized website (where it be text, simple html, advanced html and javascript). I would be very interested in hearing the other solutions that other's have tried.

基本上,文本版本适用于不支持CSS或Javascript的手机简单版本适用于不支持Javascript的手机高级版本适用于支持CSS和Javascript的手机.

Basically the text version is for phones that don't support CSS or Javascriptthe Simple version is for phones that don't support JavascriptThe Advanced version is for phones that support CSS and Javascript.

也许在这种情况下有更好的处理方法?

Maybe there is a better way of handling it with this condition?

(正在使用的服务器/客户端是PHP + Javascript)

(Server/Client side being used are PHP + Javascript)

推荐答案

您可能会发现这很有用:

You may find this useful:

  • Server-side capability detection for mobile devices
  • How to serve the right content to mobile browsers
  • Standard way to detect mobile browsers in a web application

这篇关于如何检测移动浏览器功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-24 00:34