As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center用于指导。
6年前关闭。
我正在寻找最佳的方法/实践来检测一个人是否正在使用移动设备查看网站。如果检测到移动设备,我希望能够调整网站的模板,以便更容易查看。
检测移动设备最可靠和有效的方法是什么?

最佳答案

您可以使用this项目来执行此操作:

if ($detect->isMobile()) {
    // Any mobile device.
}

关于php - 如何使用PHP检测移动设备? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16754574/

10-11 12:51