Implementation of pixel border on mobile side

Source: Internet
Author: User

Knowledge point one, how to see the mobile page we made on the phone.

Normal we are on the computer according to the Tathagata made mobile page:

  

You can't use localhost if you want to see it on your phone. So, go to the command line and enter Ipconfig to view the local IP address:

  

Then return to the local page and replace localhost with this address. Then put the whole on the phone, you can see what the page looks like on the phone.

Next, make our pixel border.

The first step:

Mixin.less

Code:

. border-1px (@color) {    position:relative;     &:after{        display:block;         Position:absolute;         Left:0;         Bottom:0;         width:100%;         border-top:1px solid @color;         content:';    } }

Step Two: App.vue use:

Code:

<styleLang= "Less">@import ' common/style/mixin '; <!---------------------here is the import #aaa. tab{Display:Flex;width:100%;Height:40px;Line-height:40px;. border-1px (Rgba (7,17,27,0.1)); <!---------------------Here is the use of . tab-item{Flex:1;text-align:Center;a{Display:Block;font-size:14px;Color:#ccc;&.active {color:RGB (240,20,20);                }            }        }    }</style>

  

Implementation of pixel border on mobile side

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.