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

移动端一物理像素边框的设置

时间:2017-05-22 13:33:16      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:像素   media   rgb   relative   pos   tran   pix   cal   rgba   

 

  

.border-1{
    position: relative;
}
.border-1:after{
    content: ‘ ‘;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    border-top: 1px solid rgba(7, 17, 21, 0.1);
}
@media (-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5) {
    .border-1:after{
        -webkit-transform: scaleY(0.7);
        transform: scaleY(0.7);
    }
}

@media (-webkit-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2) {
    .border-1:after{
        -webkit-transform: scaleY(0.5);
        transform: scaleY(0.5);

    }
}

  

移动端一物理像素边框的设置

标签:像素   media   rgb   relative   pos   tran   pix   cal   rgba   

原文地址:http://www.cnblogs.com/theone67/p/6888811.html

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