常見移動設(shè)備的 CSS3 Media Query 整理(iPhone/iPad/Galaxy/HTC One etc.)

轉(zhuǎn)自:常見移動設(shè)備的 CSS3 Media Query 整理(iPhone/iPad/Galaxy/HTC One etc.)

@charset "utf-8";

/**

  • iPhone 4/4s landscape & portrait
    */
    @media only screen
    and (min-device-width: 320px)
    and (max-device-width: 480px)
    and (-webkit-device-pixel-ratio: 2)
    and (device-aspect-ratio: 2/3) {

}

/**

  • iPhone 4/4s portrait
    */
    @media only screen
    and (min-device-width: 320px)
    and (max-device-width: 480px)
    and (-webkit-device-pixel-ratio: 2)
    and (device-aspect-ratio: 2/3)
    and (orientation:portrait) {

}

/**

  • iPhone 4/4s landscape
    */
    @media only screen
    and (min-device-width: 320px)
    and (max-device-width: 480px)
    and (-webkit-device-pixel-ratio: 2)
    and (device-aspect-ratio: 2/3)
    and (orientation:landscape) {

}

/**

  • iPhone 5/5s landscape & portrait
    */
    @media only screen
    and (min-device-width: 320px)
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {

}

/**

  • iPhone 5/5s portrait
    */
    @media only screen
    and (min-device-width: 320px)
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2)
    and (orientation: portrait) {

}

/**

  • iPhone 5/5s landscape
    */
    @media only screen
    and (min-device-width: 320px)
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2)
    and (orientation: landscape) {

}

/**

  • iPhone 5/5s landscape & portrait
    */
    @media only screen
    and (min-device-width: 414px)
    and (max-device-width: 736px)
    and (-webkit-min-device-pixel-ratio: 3) {

}

/**

  • iPhone 5/5s portrait
    */
    @media only screen
    and (min-device-width: 414px)
    and (max-device-width: 736px)
    and (-webkit-min-device-pixel-ratio: 3)
    and (orientation: portrait) {

}

/**

  • iPhone 5/5s landscape
    */
    @media only screen
    and (min-device-width: 414px)
    and (max-device-width: 736px)
    and (-webkit-min-device-pixel-ratio: 3)
    and (orientation: landscape) {

}

@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
}
/**

  • Galaxy S3 landscape & portrait
    */
    @media screen
    and (device-width: 320px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 2) {

}

/**

  • Galaxy S3 portrait
    */
    @media screen
    and (device-width: 320px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 2)
    and (orientation: portrait) {

}

/**

  • Galaxy S3 landscape
    */
    @media screen
    and (device-width: 320px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 2)
    and (orientation: landscape) {

}

/**

  • Galaxy S4 landscape & portrait
    */
    @media screen
    and (device-width: 320px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3) {

}

/**

  • Galaxy S4 portrait
    */
    @media screen
    and (device-width: 320px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3)
    and (orientation: portrait) {

}

/**

  • Galaxy S4 landscape
    */
    @media screen
    and (device-width: 320px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3)
    and (orientation: landscape) {

}

/**

  • Galaxy S5 landscape & portrait
    */
    @media screen
    and (device-width: 360px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3) {

}

/**

  • Galaxy S4 portrait
    */
    @media screen
    and (device-width: 360px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3)
    and (orientation: portrait) {

}

/**

  • Galaxy S4 landscape
    */
    @media screen
    and (device-width: 360px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3)
    and (orientation: landscape) {

}

/**

  • HTC One landscape & portrait
    */
    @media screen
    and (device-width: 360px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3) {

}

/**

  • HTC One portrait
    */
    @media screen
    and (device-width: 360px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3)
    and (orientation: portrait) {

}

/**

  • HTC One landscape
    */
    @media screen
    and (device-width: 360px)
    and (device-height: 640px)
    and (-webkit-device-pixel-ratio: 3)
    and (orientation: landscape) {

}

/**

  • iPad Mini landscape & portrait
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (-webkit-min-device-pixel-ratio: 1) {

}

/**

  • iPad Mini portrait
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: portrait)
    and (-webkit-min-device-pixel-ratio: 1) {

}

/**

  • iPad Mini landscape
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: landscape)
    and (-webkit-min-device-pixel-ratio: 1) {

}

/**

  • iPad 1/2 landscape & portrait
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (-webkit-min-device-pixel-ratio: 1) {

}

/**

  • iPad 1/2 portrait
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: portrait)
    and (-webkit-min-device-pixel-ratio: 1) {

}

/**

  • iPad 1/2 landscape
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: landscape)
    and (-webkit-min-device-pixel-ratio: 1) {

}

/**

  • iPad 3/4 landscape & portrait
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (-webkit-min-device-pixel-ratio: 2) {

}

/**

  • iPad 3/4 portrait
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: portrait)
    and (-webkit-min-device-pixel-ratio: 2) {

}

/**

  • iPad 3/4 landscape
    */
    @media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: landscape)
    and (-webkit-min-device-pixel-ratio: 2) {

}

/**

  • Galaxy Tab 10.1 landscape & portrait
    */
    @media
    (min-device-width: 800px)
    and (max-device-width: 1280px) {

}

/**

  • Galaxy Tab 10.1 portrait
    */
    @media
    (max-device-width: 800px)
    and (orientation: portrait) {

}

/**

  • Galaxy Tab 10.1 landscape
    */
    @media
    (max-device-width: 1280px)
    and (orientation: landscape) {

}

/**

  • Asus Nexus 7 landscape & portrait
    */
    @media screen
    and (device-width: 601px)
    and (device-height: 906px)
    and (-webkit-min-device-pixel-ratio: 1.331)
    and (-webkit-max-device-pixel-ratio: 1.332) {

}

/**

  • Asus Nexus 7 portrait
    */
    @media screen
    and (device-width: 601px)
    and (device-height: 906px)
    and (-webkit-min-device-pixel-ratio: 1.331)
    and (-webkit-max-device-pixel-ratio: 1.332)
    and (orientation: portrait) {

}

/**

  • Asus Nexus 7 landscape
    */
    @media screen
    and (device-width: 601px)
    and (device-height: 906px)
    and (-webkit-min-device-pixel-ratio: 1.331)
    and (-webkit-max-device-pixel-ratio: 1.332)
    and (orientation: landscape) {

}

/**

  • Kindle Fire HD 7" landscape & portrait
    */
    @media only screen
    and (min-device-width: 800px)
    and (max-device-width: 1280px)
    and (-webkit-min-device-pixel-ratio: 1.5) {

}

/**

  • Kindle Fire HD 7" portrait
    */
    @media only screen
    and (min-device-width: 800px)
    and (max-device-width: 1280px)
    and (-webkit-min-device-pixel-ratio: 1.5)
    and (orientation: portrait) {
    }

/**

  • Kindle Fire HD 7" landscape
    */
    @media only screen
    and (min-device-width: 800px)
    and (max-device-width: 1280px)
    and (-webkit-min-device-pixel-ratio: 1.5)
    and (orientation: landscape) {

}

/**

  • Kindle Fire HD 8.9" landscape & portrait
    */
    @media only screen
    and (min-device-width: 1200px)
    and (max-device-width: 1600px)
    and (-webkit-min-device-pixel-ratio: 1.5) {

}

/**

  • Kindle Fire HD 8.9" portrait
    */
    @media only screen
    and (min-device-width: 1200px)
    and (max-device-width: 1600px)
    and (-webkit-min-device-pixel-ratio: 1.5)
    and (orientation: portrait) {
    }

/**

  • Kindle Fire HD 8.9" landscape
    */
    @media only screen
    and (min-device-width: 1200px)
    and (max-device-width: 1600px)
    and (-webkit-min-device-pixel-ratio: 1.5)
    and (orientation: landscape) {

}

/**

  • Non-Retina Screens
    */
    @media screen
    and (min-device-width: 1200px)
    and (max-device-width: 1600px)
    and (-webkit-min-device-pixel-ratio: 1) {
    }

/**

  • Retina Screens
    */
    @media screen
    and (min-device-width: 1200px)
    and (max-device-width: 1600px)
    and (-webkit-min-device-pixel-ratio: 2)
    and (min-resolution: 192dpi) {
    }

/**

  • Apple Watch
    */
    @media
    (max-device-width: 42mm)
    and (min-device-width: 38mm) {

}

/**

  • Moto 360 Watch
    */
    @media
    (max-device-width: 218px)
    and (max-device-height: 281px) {

}

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末耽装,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌桃纯,老刑警劉巖喷橙,帶你破解...
    沈念sama閱讀 218,386評論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件召廷,死亡現(xiàn)場離奇詭異唁奢,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)喉恋,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,142評論 3 394
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來母廷,“玉大人轻黑,你說我怎么就攤上這事∏倮ィ” “怎么了氓鄙?”我有些...
    開封第一講書人閱讀 164,704評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長业舍。 經(jīng)常有香客問我抖拦,道長,這世上最難降的妖魔是什么舷暮? 我笑而不...
    開封第一講書人閱讀 58,702評論 1 294
  • 正文 為了忘掉前任态罪,我火速辦了婚禮,結(jié)果婚禮上下面,老公的妹妹穿的比我還像新娘复颈。我一直安慰自己,他們只是感情好沥割,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,716評論 6 392
  • 文/花漫 我一把揭開白布耗啦。 她就那樣靜靜地躺著,像睡著了一般驯遇。 火紅的嫁衣襯著肌膚如雪芹彬。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,573評論 1 305
  • 那天叉庐,我揣著相機(jī)與錄音舒帮,去河邊找鬼。 笑死陡叠,一個胖子當(dāng)著我的面吹牛玩郊,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播枉阵,決...
    沈念sama閱讀 40,314評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼译红,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了兴溜?” 一聲冷哼從身側(cè)響起侦厚,我...
    開封第一講書人閱讀 39,230評論 0 276
  • 序言:老撾萬榮一對情侶失蹤耻陕,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后刨沦,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體诗宣,經(jīng)...
    沈念sama閱讀 45,680評論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,873評論 3 336
  • 正文 我和宋清朗相戀三年想诅,在試婚紗的時候發(fā)現(xiàn)自己被綠了召庞。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,991評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡来破,死狀恐怖篮灼,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情徘禁,我是刑警寧澤诅诱,帶...
    沈念sama閱讀 35,706評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站送朱,受9級特大地震影響逢艘,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜骤菠,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,329評論 3 330
  • 文/蒙蒙 一它改、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧商乎,春花似錦央拖、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,910評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至抹凳,卻和暖如春遏餐,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背赢底。 一陣腳步聲響...
    開封第一講書人閱讀 33,038評論 1 270
  • 我被黑心中介騙來泰國打工失都, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人幸冻。 一個月前我還...
    沈念sama閱讀 48,158評論 3 370
  • 正文 我出身青樓粹庞,卻偏偏與公主長得像,于是被迫代替她去往敵國和親洽损。 傳聞我的和親對象是個殘疾皇子庞溜,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,941評論 2 355

推薦閱讀更多精彩內(nèi)容

  • 一、使用真實手機(jī)測試未發(fā)布網(wǎng)頁的方法 方法① 在虛擬機(jī)中搭建xampp碑定,將文件通過FTP傳到虛擬機(jī)流码,在一個局域網(wǎng)中...
    fastwe閱讀 726評論 0 0
  • 超高速音視頻編碼器用法: ffmpeg [options] [[infile options] -i infile...
    吉兇以情遷閱讀 4,606評論 0 4
  • Mobile Web Favorites 參與貢獻(xiàn) 移動前端開發(fā)收藏夾又官,歡迎使用Issues以及 Pull Req...
    柴東啊閱讀 734評論 0 2
  • 這篇文字里我會介紹50 個便于使用的 CSS2/CSS3 代碼片段給所有的WEB專業(yè)人員. 選擇IDE開發(fā)環(huán)境來存...
    JamHsiao_aaa4閱讀 1,118評論 0 3
  • 從11.19號基金訓(xùn)練營開課到現(xiàn)在十多天的時間里,我收獲了很多的東西漫试,也成長了很多赏胚。尤其是自己思維方式,刷新...
    風(fēng)鈴苦澀淺笑傾傷了回閱讀 1,405評論 5 80