Apicloud: Let your app border show native 1px

Source: Internet
Author: User

Apicloud is undoubtedly a pretty hot app development tool, and there are probably a lot of little common sense in the face of developers moving from the web to mobile apps, such as this border. How to make 1px thinner and look like a native? Here's a way to teach you:

.border {    position: relative;    width: 300px;     height: 200px;}. border:after {    border: 1px solid  #ff3300;     display: block;    content:  ';    position: absolute;     top: 0;    right: 0;    bottom:  0;    left: 0;    -webkit-transform-origin: 0 0;     -webkit-transform: scale (1);     pointer-events: none;} @media  only screen and  (-webkit-min-device-pixel-ratio: 1.5)  {     .border:after {        right: -100%;         bottom: -100%;       &Nbsp;-webkit-transform: scale (0.5);     }} 

If you want the top border or the bottom border ... Then just need to modify the border:after inside the border on it.


PS: Special Instructions

Don't miss the Pointer-events:none, or you won't be able to click.

Apicloud: Let your app border show native 1px

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.