/* iphone retina portrait, 4inch (iphone 5 and up) */
@media only screen and (-webkit-min-device-pixel-ratio : 2) and (device-aspect-ratio: 40/71) {
body {
background-color: red;
}
}
/* retina, iphone, portrait, 3.5inch (iphone 4) */
@media only screen and (-webkit-min-device-pixel-ratio : 2) and (device-aspect-ratio: 2/3) {
body {
background-color: yellow;
}
}
努力,但没有工作,任何想法,我要iPhone 4之间的确切区分,iPhone 4S和iPhone 5的媒体查询,iPhone 4S和iPhone 5
能否请你划分4个4S分别 – user2727195
在iPhone 4和iPhone 4S具有相同的屏幕尺寸:http://www.everymac.com/systems/apple/iphone/specs/apple- iPhone-4S-specs.html。您可能必须使用Javascript来检测设备并加载不同的CSS。 – Michio