css媒体查询判断iPhone4和iPhone5

* iphone4 */

@media screen and (device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2){


}

/* iphone5 */

@media screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2){

 

}

posted @ 2017-05-24 09:39  (⊙o⊙)买噶  阅读(2551)  评论(0编辑  收藏  举报