<li class="inputStyle">
<span></span>
<span></span>
<span></span>
<span></span>
</li>
inputStyle{
& span:nth-child(1) {
position: absolute;
left: 0px;
top: 0px;
padding: 9px;
border-style: solid;
border-color: #01e0fb;
border-width: 1px 0 0 1px;
}
& span:nth-child(2) {
position: absolute;
right: 0;
top: 0;
padding: 9px;
border-style: solid;
border-color: #01e0fb;
border-width: 1px 1px 0 0;
}
& span:nth-child(3) {
position: absolute;
right: 0;
bottom: 0;
padding: 9px;
border-style: solid;
border-color: #01e0fb;
border-width: 0 1px 1px 0;
}
& span:nth-child(4) {
position: absolute;
left: 0;
bottom: 0;
padding: 9px;
border-style: solid;
border-color: #01e0fb;
border-width: 0 0 1px 1px;
}
}
记录一下,不用再切图了。