zoukankan      html  css  js  c++  java
  • 201509280825_《css3——media query整理2》

    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- 1536px) and (max-device- 2048px) and (-webkit-min-device-pixel-ratio: 2)
    {
    /*你的样式写在这里*/
    }
     
    前端-语言
  • 相关阅读:
    [转]addEventListener() 方法,事件监听
    JavaScrpit判断横竖屏
    无法获得锁 /var/lib/dpkg/lock
    配置Meld为git的默认比较工具
    C#多线程之旅(7)——终止线程
    【SQL进阶】03.执行计划之旅1
    单问号和双问号
    聚集索引VS非聚集索引
    【T-SQL进阶】02.理解SQL查询的底层原理
    【T-SQL】系列文章全文目录(2017-06-26更新)
  • 原文地址:https://www.cnblogs.com/beesky520/p/4843211.html
Copyright © 2011-2022 走看看