“VIEW FULL SITE” mobile site option

前端 未结 5 1707
别跟我提以往
别跟我提以往 2020-12-15 01:41

So I\'m working on the mobile version of a site I\'m doing, and so far, I\'m pulling the mobile sites content from its main counterpart, the main site.

As I study s

5条回答
  •  执念已碎
    2020-12-15 02:36

    Server-side detection is definitely the way to do this, as you have no guarantee of JS being available or even turned on. A great PHP script for mobile detection is found here http://detectmobilebrowsers.mobi/ and it gets a lot of use around the web.

提交回复
热议问题