引导输入组不相互分组

时间:2016-11-17 08:39:29

标签: jquery twitter-bootstrap

我的bootstrap-datepicker有一个bootstrap输入组。问题是输入和input-group-addon的位置。他们没有彼此分组。

enter image description here



<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="container">
  <div class="col-md-12">
    <div class="input-group date" data-provide="datepicker">
      <input type="text" class="form-control">
      <div class="input-group-addon">
        <span class="glyphicon glyphicon-th"></span>
      </div>
    </div>

    <div class="checkbox">
      <label>
        <input type="checkbox" id="checkMe" onclick="disableMyText()">Check me out
      </label>
    </div>
  </div>
</div>
&#13;
&#13;
&#13;

0 个答案:

没有答案