Mobile phone-side 0.5px lines

Source: Internet
Author: User

Add the corresponding class name and display the 0.5px effect on the PC line display 1PX,2C side

/*1px hack*/. Ui-border-t{Border-top:1px solid #e0e0e0; }. Ui-border-b{Border-bottom:1px solid #e0e0e0; }. UI-BORDER-TB{Border-top:#e0e0e0 1px solid;Border-bottom:#e0e0e0 1px solid;Background-image:None; }. Ui-border-l{Border-left:1px solid #e0e0e0; }. Ui-border-r{Border-right:1px solid #e0e0e0; }. Ui-border{Border:1px solid #e0e0e0; }. Ui-border-radius{Border:1px solid #e0e0e0;Border-radius:4px; }@media screen and (-webkit-min-device-pixel-ratio:2){. Ui-border-radius {Position:relative;Border:0; }. Ui-border-radius:before{content: "";width:200%;Height:200%;position:Absolute;Top:0; Left:0;Border:1px solid #e0e0e0;-webkit-transform:Scale (0.5);-webkit-transform-origin:0 0;padding:1px;-webkit-box-sizing:Border-box;Border-radius:8px;pointer-events:None; }} @media screen and (-webkit-min-device-pixel-ratio:2){. ui-border {Position:relative;Border:0; }. Ui-border-t,. Ui-border-b,. Ui-border-l,. Ui-border-r,. UI-BORDER-TB{Border:0; }. Ui-border-t{background-position:Left top;Background-image:-webkit-gradient (linear, left bottom, left top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0) ); }. Ui-border-b{background-position:Left Bottom;Background-image:-webkit-gradient (linear, left top, left bottom, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0) ); }. Ui-border-t,. Ui-border-b,. UI-BORDER-TB{background-repeat:Repeat-x;-webkit-background-size:100% 1px; }. UI-BORDER-TB{Background-image:-webkit-gradient (linear, left bottom, left top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0) ),-webkit-gradient (linear, left top, left bottom, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0)) /c6>;background-position:Top, Bottom; }. Ui-border-l{background-position:Left top;Background-image:-webkit-gradient (linear, right top, left top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0)) /c4>; }. Ui-border-r{background-position:Right top;Background-image:-webkit-gradient (linear, left top, right top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0)) /c9>; }. Ui-border-l,. Ui-border-r{background-repeat:repeat-y;-webkit-background-size:1px 100%; }. Ui-border:after{content: "";width:100%;Height:100%;position:Absolute;Top:0; Left:0;Background-image:-webkit-gradient (linear, left bottom, left top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0) ),-webkit-gradient (linear, left top, right top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0)),-W Ebkit-gradient (linear, left top, left bottom, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0)),- Webkit-gradient (linear, right top, left top, color-stop (0.5, transparent), color-stop (0.5, #e0e0e0), to (#e0e0e0));-webkit-background-size:100% 1px,1px 100%, 100% 1px, 1px 100%;background-size:100% 1px,1px 100%, 100% 1px, 1px 100%;-webkit-background-size:100% 1px,1px 100%, 100% 1px, 1px 100%;background-size:100% 1px,1px 100%, 100% 1px, 1px 100%;background-repeat:no-repeat;background-position:top, right, bottom, left;padding:1px;-webkit-box-sizing:Border-box;Z-index:Ten;pointer-events:None; } }

Mobile phone-side 0.5px lines

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.