【发布时间】:2018-07-15 22:27:18
【问题描述】:
我正在制作发票申请表。现在我在一行中做了五列。每列都有输入字段。第四列和第五列有四个输入字段,但第五列字段没有标签。现在我需要的是使用引导类对齐四列和第五列,而无需任何自定义 CSS。因为我不需要第五列中的标签。花了几个小时后,我不知道如何对齐两列。
HTML:
<div class="row">
<div class="col-sm-3>
<div class="form-group">
<label for="inputEmail">field</label>
<input type="text" class="form-control" id=""
placeholder=""> </div>
</div>
<div class="col-sm-3>
<!--i am using these four lines code in every col for input fields for sake clarity i wrote it only here.
<div class="form-group">
<label for="inputEmail">field</label>
<input type="text" class="form-control"id=""
placeholder="item desc"> </div>
</div>
<div class="col-sm-3>
</div>
<!---fourth col-!>
<div class="col-sm-3>
</div>
<!--fifth col--!>
<div class="col-sm-3>
<!-I need to align this column with the above column remeber this coloumn field does not have labels thats why I am not able to align both columns(fourth and fifth)-!>
</div>
</div>
【问题讨论】:
标签: html bootstrap-4