@media解决前端移动设备不兼容问题

所有 iPad Media Queries

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

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

iPhone 5 Media Queries

@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : Portrait ){ 
/* iPhone5 Portrait */
}

@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) { 
/*iPhone 6 landscape*/
}



iPhone 6 Media Queries

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


发布了32 篇原创文章 · 获赞 11 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/jinxi1112/article/details/52658337
今日推荐