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