所以我填写空白,中间有文字(请参阅我的previous question),现在我遇到了一个问题,我在文本中间均匀分隔了边距左边距和边距右边但是如果我把let说1代替0看起来像1:和0表示正常0:但由于1是较少的像素,看起来不太好,我总是可以这样离开,希望没有人注意到,但我想把它作为尽可能干净。
看看你自己here
如果不是这里的代码,
.text1 {
display: inline-block;
font-size: 4vmin;
margin-right: -22px;
margin-left: -4px;
user-select: none;
text-align: right;
}
.fill-out {
outline: none;
border: 0;
margin-left: 18px;
display: inline-block;
}
#box1 {
width: 13px;
}
#box2 {
width: 13px;
}
#box3 {
width: 21px;
}
<div>
<input class="fill-out" id="box1" type="text" placeholder="00" maxlength="2" />
<span class="text1">:</span>
<input class="fill-out" id="box2" type="text" placeholder="00" maxlength="2" />
<span class="text1">.</span>
<input class="fill-out" id="box3" type="text" placeholder="000" maxlength="3" />
</div>
```
输入2然后再次运行并输入1