css 来自http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 来自http://css-tricks.com/snippets/css/media-queries-for-standard-devices/相关的知识,希望对你有一定的参考价值。

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen 
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen 
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen 
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}

以上是关于css 来自http://css-tricks.com/snippets/css/media-queries-for-standard-devices/的主要内容,如果未能解决你的问题,请参考以下文章

来自 CSS Intellij 的自动完成 HTML 属性

css APP-transitional.css。来自Project 3的CSS Grid样式表。

css CSS:媒体查询(来自stephen.io的bootstrap +移动设备)

CSS知识点合集---来自安阳某师范!

继承/覆盖来自不同外部文件的现有 CSS 规则

来自css的奇怪颜色污点