使用jQuery Mobile和响应式布局/ CSS媒体查询是否冗余? [英] Is it redundant using jQuery Mobile and a responsive layout /CSS media queries?

查看:161
本文介绍了使用jQuery Mobile和响应式布局/ CSS媒体查询是否冗余?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天查看了 http://mediaqueri.es/ ,发现网站适应移动设备。所以我想知道如果使用jQuery Mobile和响应/自适应布局与媒体查询在一起将是多余的,因为通过使用只有媒体查询似乎是一个很好的方法。



例如:









我看不到这个网站如何使用jQuery Mobile,因为使用媒体查询做得很好。



为了公平起见,我没有看到这个网站没有jQuery Mobile,hehe。重现原生应用程序的外观和感觉没有jQuery Mobile会很难,这是正确的吗?

解决方案

移动设备不会使媒体查询过时。在我看来,jQuery移动的一个巨大的优势是,它使事情像表单元素更加移动友好,通过使它们更大等。但如果你想改变其他的东西取决于设备,如说图像的大小,你可能仍然需要使用媒体查询来加载适当的css文件。


I was checking out http://mediaqueri.es/ today and found out that the websites adapt fantastically to mobile devices. So i wondered if using jQuery Mobile and a response/adaptive layout with media queries together would be redundant, since by using only media queries seems to be a good approach. Is it really redundant or am i tripping on caffeine?

EDIT

Example: I don't see how this website would benefit from using jQuery Mobile, since it's very well done using media queries.

And to be fair, i don't see this website being done without jQuery Mobile, hehe. Reproducing the "native app" look and feel without jQuery Mobile would be hard, is this correct?

解决方案

Personally, I think jQuery Mobile does not make media queries obsolete. One of the great advantages of jQuery mobile in my opinion, is that it makes things like form elements more mobile friendly by making them bigger etc. But if you want to change other things depending on the device, like say the size of images, you might still want to use media queries to load the appropriate css file.

这篇关于使用jQuery Mobile和响应式布局/ CSS媒体查询是否冗余?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆