Programme one:
. left-list > Ul li {
position:relative;
Height:1.22rem;
Line-height:1.22rem;
Font-size:0.24rem;
Color: #555555;
}
. left-list > UL Li:before {
Content: ";
Position:absolute;
left:0;
width:200%;
height:200%;
transform-origin:0 0;
Transform:scale (0.5);
Border-style:solid;
border-width:1px 0 0 0;
Border-color: #e5e5e5;
Box-sizing:border-box;
}
Scenario Two:
Nav ul li{
position:relative;
Float:left;
Color: #9a9a9a;
Font-size:0.24rem;
Text-align:center;
PADDING:3PX 5px;
Border-radius:0.03rem;
Margin-left:0.21rem;
Margin-bottom:0.18rem;
}
Nav ul Li:before {
Content: ";
Position:absolute;
Top:-50%;
Bottom:-50%;
Left:-50%;
Right:-50%;
-webkit-transform:scale (0.5);
Transform:scale (0.5);
Border-style:solid;
border-width:1px;
Border-color: #9a9a9a;
-webkit-border-radius:0.12rem;
Border-radius:0.12rem;
}
Programme III:
ul{
position:relative;
}
li{
height:60px;
line-height:60px;
padding-left:10px;
position:relative;
font-size:20px;
width:20%;
height:20%;
}
li:after{
Content: "";
Display:block;
Position:absolute;
Left:-50%;
width:200%;
height:1px;
background:red;
-webkit-transform:scale (0.5);
}
0.5PX has many pits. Breakpoints are present when only the bottom border is displayed. That is, the edge of an LI element is not displayed.
Implementation of 0.5px on the mobile side