zoukankan      html  css  js  c++  java
  • 媒体查询判断ipad和iPhone各版本

    /* 判断ipad */
    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px){
    /* style */
    }
    

      

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

      

    /* ipad竖屏 */
    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px)
    and (orientation : portrait){
    /* style */
    }
    

      

    /* 判断iphone5 *//* 横屏竖屏判断方法与ipad一样 */
    @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 568px){
    /* style */
    }
    

      

    /* 判断iphone4-iphone4s *//* 横屏竖屏判断方法与ipad一样 */
    @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){
    /* style */
    }
    

      

    /* iphone5分辨率 */
    screen Width = 320px (css像素)
    screen Height = 568px (css像素)
    screen Width = 640px (实际像素)
    screen Height = 1136px (实际像素)
    Device-pixel-ratio:2
    

      

    /* iphone4-iphone4s分辨率 */
    screen Width = 320px (css像素)
    screen Height = 480px (css像素)
    screen Width = 640px (实际像素)
    screen Height = 960px (实际像素)
    Device-pixel-ratio:2
    

      

  • 相关阅读:
    Daily Scrum 12.9
    成员总结
    反省与深思
    M1事后分析报告--We have power to change the origin state
    PowerTeam--Alpha阶段个人贡献分及转会人员
    Pipeline Alpha版本项目展示
    js 字符串操作函数
    js与jq对数组的操作
    js 与 jq 的节点添加删除实例
    js,jq,css选择器
  • 原文地址:https://www.cnblogs.com/tonyTao/p/5430434.html
Copyright © 2011-2022 走看看