input lable水平对齐

时间:2021-06-01 03:07:38

1、CSS

<style type="text/css">
      input,label { vertical-align:middle;}
</style>

2、html

<label><input name="chkGD" id="chkGD" type="checkbox" value="" style="border:none; background-color:#F4F4F4" />加载供电方案</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<label><input name="chkYS" id="chkYS" type="checkbox" value="" style="border:none; background-color:#F4F4F4"/>加载预算方案</label>