我为margin:0 auto 和center-alignment 使用了各种类,但没有奏效。
<div class="container">
<div class="col-md-12 newsletter">
<form action="#" method="post">
<div class="form-group col-md-6 col-xs-10 col-sm-10 col-lg-4">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email">
</div>
<div class="clearfix"></div>
<div class="form-group col-md-6 col-xs-10 col-sm-10 col-lg-4">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email">
</div>
</form>
</div>
</div>