css 媒体查询中使用的宽度

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 媒体查询中使用的宽度相关的知识,希望对你有一定的参考价值。

@media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */ }
@media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px) { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
@media (min-width:961px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }

/* Ref: http://stackoverflow.com/questions/16704243/widths-to-use-in-media-queries */

以上是关于css 媒体查询中使用的宽度的主要内容,如果未能解决你的问题,请参考以下文章

使用 css 变量(没有 SASS/LESS)设置媒体查询的最小/最大宽度?

使用 JavaScript 检测动态媒体查询而不在脚本中硬编码断点宽度?

如何在 CSS 中模拟媒体查询?

如何使用 Javascript 获取“css-pixel”(媒体查询)宽度?

CSS3 媒体查询 - 容器的宽度而不是屏幕的宽度?

视口和 CSS 媒体查询的宽度不同?