css3@media 兼容ios4,ios5,ios6,6plus
2017-07-07 13:05
204 查看
//device-height 设备可视高度 //-webkit-min-device-pixel-ratio 是设备上物理像素和设备独立像素,设备像素比率 @media (device-height:480px) and (-webkit-min-device-pixel-ratio:2) { /* 兼容iphone4/4s */ html{} } @media (max-device-width:621px) and (-webkit-min-device-pixel-ratio:3) { /* 兼容iphone6p */ html{} } @media (device-height:667px) and (-webkit-min-device-pixel-ratio:2) { /* 兼容iphone6 */ html{} } /*魅族*/ @media only screen and (min-device-width :1080px) and (-webkit-min-device-pixel-ratio : 2.5){ } /*mate7*/ @media only screen and (min-device-width :1080px) and (-webkit-min-device-pixel-ratio : 3){ }
相关文章推荐
- 附自适应图片的通用代码 适用ios4 ios5 ios6
- 兼容ios5和ios6的内存不足时警告的…
- iOS6,iOS5内存警告的兼容处理
- 兼容ios4及ios5的自定义navigationbar的rightBarButtonItem
- ios学习之 IOS6屏幕旋转详解(自动旋转、手动旋转、兼容IOS6之前系统)
- IOS6屏幕旋转详解(自动旋转、手动旋转、兼容IOS6之前系统)
- 在任意UIView上显示Badge(兼容IOS6)
- 在任意UIView上显示Badge(兼容IOS6)
- ios--ios6与ios7界面兼容(解决方案)
- iOS6兼容之前版本的旋屏总结
- ios内存不足的处理(兼容ios6前后)
- iOS5,iOS6,iOS7中UITabBarController,UINavigationController等界面中的旋转问题总结
- 使用 Interface Builder 兼容 iOS6 和iOS7
- IOS6旋转屏、锁定横屏的实现(兼容IOS5)
- ios4、ios5在跳转上有些区别:
- iOS: iOS5有,但iOS4没有的特性
- IOS6屏幕旋转详解(自动旋转、手动旋转、兼容IOS6之前系统)
- 在任意UIView上显示Badge(兼容IOS6)
- Xcode5离线安装IOS6、IOS5模拟器
- <iOS> xcode4.5.1、iphone5、ios6 兼容