码迷,mamicode.com
首页 > Web开发 > 详细

CSS 兼容iPhone X、iPhone XS及iPhone XR

时间:2019-03-01 15:33:38      阅读:813      评论:0      收藏:0      [点我收藏+]

标签:scree   padding   ice   height   port   dia   class   iphone   one   

    @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
        .ua-box .rule-box{
            padding-bottom:30px !important;
        }
    }
    @media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio:3) {
        .ua-box .rule-box{
            padding-bottom:30px !important;
        }
    }
    @media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio:2) {
        .ua-box .rule-box{
            padding-bottom:30px !important;
        }
    }

 

CSS 兼容iPhone X、iPhone XS及iPhone XR

标签:scree   padding   ice   height   port   dia   class   iphone   one   

原文地址:https://www.cnblogs.com/minjh/p/10456547.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!