【发布时间】:2017-06-03 15:49:33
【问题描述】:
如何将复选框标签移到复选框上方?
目前标签出现在复选框的左侧,我希望它们位于复选框上方。
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-md-2">
<div class="form-group">
<label for="viewstats">
View Statistics
</label>
<input type="checkbox" value="">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label for="viewgraphs">
View Graphs
</label>
<input type="checkbox" value="">
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label for="viewnotifications">
View Notifcations
</label>
<input type="checkbox" value="">
</div>
</div>
</div>
【问题讨论】:
-
在
<input type="checkbox" value="">之前使用<br> -
或将您的复选框包裹在
div中。