且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使手机以及PC的兼容性网站

更新时间:2023-02-26 21:56:52

嗯,其实你可以做不同的方式。***的解决办法是一些脚本,首先检查用户代理。我叩头,它不是救,导致其容易改变的药物,但为什么要有人做出来,与它的好处;)
因此,这应该是你的解决方案。您还可以优化网站的specfic目标设备/浏览器。例如,对于像iPhone,Android或WinMob设备,你乌尔德使用JavaScript框架withthe网站内容合作。

Well, actually you can do it in different ways. The best solution is some script which checks the UserAgent first. I kow, its not that save, 'cause its easy to change the agent but why should someone do it and with which benefit of it ;) So this should be your solution. Also you can optimize the websites to the specfic target device/browser. For example, for devices like iPhone, Android or WinMob you ould use Javascript Frameworks to work withthe website content.

我做了另一个问题,它可以帮助你藏汉一个小帖子:http://***.com/questions/3552616/is-there-an-equivilent-of-jqtouch-that-covers-iphone-android-webos-and-blackber/3554010

I made a little post on another question which could help you aswell: http://***.com/questions/3552616/is-there-an-equivilent-of-jqtouch-that-covers-iphone-android-webos-and-blackber/3554010