小编DAV*_*N-K的帖子

将复选框标签移动到复选框上方

如何将复选框标签移动到复选框上方?

目前标签出现在复选框的左侧,我希望它们位于复选框上方。

<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>
Run Code Online (Sandbox Code Playgroud)

html twitter-bootstrap

3
推荐指数
1
解决办法
8564
查看次数

标签 统计

html ×1

twitter-bootstrap ×1