什么更好:CSS媒体查询或JQuery手机? [英] What is better: CSS media queries or JQuery mobile?
问题描述
我是开发移动网站的新手。我很困惑的两种方法之间,因为我没有任何经验这一点。两种方法之间的更好:当我们使用css文件中的所有宽度设备时,css查询或使用jquery mobile,使用php技术为使用桌面或移动设备的不同用户
I'm newbie for developing mobile website. I very confused between two methods because I dont have any experience this it. Whats more better between two methods: css query when we using all of width device in css file or using jquery mobile that use php technique for differented user that use desktop or mobile [user->php?->mobile use jquery mobile/desktop use css standard]?
非常感谢这个答案
推荐答案
我将按照重要性对方法进行分类,从最重要的到不太重要:
I will classify methods by their importance, from most important one to less important:
使用 Modernizer javascript库来检测移动/桌面环境
Using Modernizer javascript library to detect mobile / desktop environment
使用 Modernizer服务器或 WURFL 。
检测桌面/移动设备的解决方案不佳。当前移动设备的屏幕分辨率等于桌面平台
Bad solution to detect desktop /mobile devices. Current mobile devices can have screen resolution equal to desktop platform
最差的解决方案。
要了解有关此解决方案的更多信息,请阅读我的其他文章/答案与示例:http://stackoverflow.com/a/15055352/1848600
To find more about this solutions, read my other article/answer with examples: http://stackoverflow.com/a/15055352/1848600
这篇关于什么更好:CSS媒体查询或JQuery手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!