201509280825_《css3——media query整理2》
2015-09-28 08:34
676 查看
1、Smartphones (竖板和横板)
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* 你的样式写在这里 */ } 2、Smartphones (横板)
@media only screen and (min-width : 321px) { /* 你的样式写在这里 */ } 3、Smartphones (竖板)
@media only screen and (max-width : 320px) { /* 你的样式写在这里 */ } 4、iPad(竖板和横板)
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* 你的样式写在这里 */ } 5、iPad横板
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* 你的样式写在这里 */ } 6、iPad的竖板
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* 你的样式写在这里 */ } 7、Desktops and laptops
@media only screen and (min-width : 1224px) { /* 你的样式写在这里 */ } 8、Large screens
@media only screen and (min-width : 1824px) { /* 你的样式写在这里 */ } 9、iPone4
@media only screen and (-webkit-min-device-pixel-ratio : 1.5),only screen and (min-device-pixel-ratio : 1.5) { /* 你的样式写在这里 */ } 10、iPhone4竖板
@media only screen and (-webkit-min-device-pixel-ratio : 1.5) and (orientation:portrait), only screen and (min-device-pixel-ratio : 1.5) and (orientation:portrait){ /*你的样式写在这里*/ } 11、iPhone4横板
@media only screen and (-webkit-min-device-pixel-ratio : 1.5) and (orientation:landscape),only screen and (min-device-pixel-ratio : 1.5) and (orientation:landscape){ /*你的样式写在这里*/ } 12、iPad 3 Media Query
@media only screen and (min-device-width: 1536px) and (max-device-width: 2048px) and (-webkit-min-device-pixel-ratio: 2) {
/*你的样式写在这里*/ }
相关文章推荐
- AlgorithmsI PA2: Randomized Queues and Deques Subset
- AlgorithmsI PA2: Randomized Queues and Deques RandomizedQueue
- AlgorithmsI PA2: Randomized Queues and Deques Deque
- iOS开发小白学习体验-UICollectionView(一)
- [iOS]iOS中UITabbarController左右滑动切换
- iOS开发UI篇—UIScrollView控件介绍
- string stringbuffer stringbuilder区别
- iOS9系列专题五——全新的联系人与联系人UI框架
- pat 1099 Build A Binary Search Tree
- AndroidStudio导入项目一直卡在Building gradle project info最快速解决方案
- 欧拉回路 (Euler Circuit) POJ 1780
- 如何汉化EasyUI、ExtJS等富客户端框架
- HDU 5493 Queue (树状数组+二分)2015 ICPC 合肥网赛
- 设置UITableViewCell 选中时的背景颜色
- N-queens
- SOAPUI 安装及破解
- UI:使用 pod 引入 AFNetworking
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问
- hdu 5493 Queue 线段树
- UIView