转载自:

淡忘~浅思 【译】Responsive Design常用的媒体查询

另推荐:http://stephen.io/mediaqueries/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
640px
@media screen and (max-width: 640px)
{
}
800px
@media screen and (max-width: 800px)
{
}
1024px
@media screen and (max-width: 1024px)
{
}
智能手机媒体查询
适用于大部分主流智能手机

iPhone(2G-4S)
/*Landscape Mode*/
@media screen and (max-device-width: 480px)
{
}
/* Portrait Mode */
@media screen and (max-device-width: 320px)
{
}
iPhone 4
@media only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5)
{
}
iPhone5
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {
/* 样式写在这里 */
}
iPhone6
@media only screen and (min-device-width: 375px) and (max-device-width: 667px)
and (orientation : portrait) {
/*iPhone 6 Portrait*/
}
@media only screen and (min-device-width: 375px) and (max-device-width: 667px)
and (orientation : landscape) {
/*iPhone 6 landscape*/
}
@media only screen and (min-device-width: 414px) and (max-device-width: 736px)
and (orientation : portrait) {
/*iPhone 6+ Portrait*/
}
@media only screen and (min-device-width: 414px) and (max-device-width: 736px)
and (orientation : landscape) {
/*iPhone 6+ landscape*/
}
@media only screen and (max-device-width: 640px),
only screen and (max-device-width: 667px),
only screen and (max-width: 480px){
/*iPhone 6 and iPhone 6+ portrait and landscape*/
}
@media only screen and (max-device-width: 640px),
only screen and (max-device-width: 667px),
only screen and (max-width: 480px) and (orientation : portrait){
/*iPhone 6 and iPhone 6+ portrait*/
}
@media only screen and (max-device-width: 640px),
only screen and (max-device-width: 667px),
only screen and (max-width: 480px) and (orientation : landscape){
/*iPhone 6 and iPhone 6+ landscape*/
}
HTC EvoBlackBerry TorchHTC ThunderboltHD2

@media screen and (max-device-width: 480px)
{
}
平板媒体查询
这个列表会有点长

iPad
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 768px) and (orientation: portrait)
{
}
iPad 2
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 768px) and (orientation: portrait)
{
}
iPad 3
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 768px) and (orientation: portrait)
{
}
iPad mini
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (-webkit-min-device-pixel-ratio: 1) {
/* 样式写在这里 */
}
Samsung Galaxy Tab 10.1
/* Landscape Mode */
@media (max-device-width: 1280px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 800px) and (orientation: portrait)
{
}
Motorola Xoom
/* Landscape Mode */
@media (max-device-width: 1280px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 800px) and (orientation: portrait)
{
}
HTC Flyer
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 600px) and (orientation: portrait)
{
}
BlackBerry PlayBook
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 600px) and (orientation: portrait)
{
}
HP TouchPad
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 768px) and (orientation: portrait)
{
}
Lenovo Thinkpad Tablet
/* Landscape Mode */
@media (max-device-width: 1280px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 800px) and (orientation: portrait)
{
}
Sony Tablet S
/* Landscape Mode */
@media (max-device-width: 1280px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 800px) and (orientation: portrait)
{
}
T-Mobile G-Slate
/* Landscape Mode */
@media (max-device-width: 1280px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 768px) and (orientation: portrait)
{
}
ViewSonic ViewPad 10
/* Landscape Mode */
@media (max-device-width: 1024px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 600px) and (orientation: portrait)
{
}
Dell Streak 7
/* Landscape Mode */
@media (max-device-width: 800px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 480px) and (orientation: portrait)
{
}
ASUS Eee Pad Transformer
/* Landscape Mode */
@media (max-device-width: 1080px) and (orientation: landscape)
{
}
/* Portrait Mode */
@media (max-device-width: 800px) and (orientation: portrait)
{
}