It seems thick to set border to 1px at the mobile front end.

I have found the method, but I don"t know how to use it. The code is as follows:
% border-1px {

display: block;
position:absolute;
left: 0;
width: 100%;
content: " ";

}
.border-1px {

position: relative;
&::after{
    @extend %border-1px;
    bottom: 0;
    border-top: 1px solid -sharpccc; 
}
&::before{
    @extend %border-1px;
    top: 0;
    border-bottom: 1px solid -sharpccc;
}

}

@ media (- webkit-min-device-pixel-ratio:1.5), (min-device-pixel-ratio:1.5) {

.border-1px{
    &::after{
        -webkit-transform: scaleY(0.7);
        transform: scaleY(0.7);
    }
}

}

@ media (- webkit-min-device-pixel-ratio:2), (min-device-pixel-ratio:2) {

.border-1px{
    &::after{
        -webkit-transform: scaleY(0.5);
        transform: scaleY(0.5);
    }
}

}

Mar.28,2021

1px is rendered as 2 physical pixels under 2 times screen, and 1px is rendered as 3 physical pixels under 3 times screen. You can understand the relationship between px and dpi.

under 2x screen, 1px border transform: scale (0.3333)
under 3x screen, 1px border transform: scale (0.3333)


Mobile 1px one-sided border (notes taken a long time ago, try it)

    /*  */.borderTop:before {content:"";position:absolute;z-index:2;left:0;top:0;height:1px;width:100%;border-top:1px solid -sharpccc;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5);}
    /*  */.borderBottom:after {content:"";position:absolute;z-index:2;left:0;bottom:0;height:1px;width:100%;border-bottom:1px solid -sharpccc;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5);}
    /*  */.borderLeft:before {content:"";position:absolute;z-index:2;left:0;top:0;height:100%;width:1px;border-left:1px solid -sharpccc;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5);}
    /*  */.borderRight:after {content:"";position:absolute;z-index:2;right:0;top:0;height:100%;width:1px;border-right:1px solid -sharpccc;-webkit-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:scaleX(.5);transform:scaleX(.5);}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b375e8-2c095.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b375e8-2c095.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?