input 复选框 和文字 对齐样式

.box_sp{
display: flex;
align-items: center;
}
.box_sp span{
display: inline-block;
height: 15px;
line-height: 17px;
}

<td class="box_sp">
<input class="control-text" id="cross_box" name="cross_box" type="checkbox" autocomplete="off" style="width:14px"/>
<span>交强险期限</span>
</td>

posted on 2024-06-04 15:53  磊有三颗小石头  阅读(10)  评论(0)    收藏  举报

导航