我想对齐我的模态中的一些输入。我正在试图以适当的方式设置这一点。我看过并找到了很多例子,但他们没有和我一起工作。我了解bootstrap网站说使用form-inline,但我不需要像这样的整个表单设置。我只想让城市/州/邮编相互嵌套。你也会在右上角看到一个复选框。我已经将它向右移动了一点,但是它会扰乱它的响应速度。做这个的最好方式是什么? plunkr如何对齐引导窗体输入
<div class="form-group clearfix inline">
<label class="col-sm-3 control-label text-right">City</label>
<div class="col-sm-9">
<input style="width:200px" ng-model="customer.city" type="text" class="form-control input-md">
</div>
<label class="col-sm-3 control-label text-right" for="customerSt">State</label>
<div class="col-sm-9">
<select style="width:200px" ng-model="customer.st" class="form-control" ng-options="s.abbr as s.name for s in states">
<option value="">-- Select a State --</option>
</select>
</div>
<label class="col-sm-3 control-label text-right">Zipcode</label>
<div class="col-sm-9">
<input style="width:200px" ng-model="customer.zip" type="text" class="form-control input-md">
</div>
</div>
复选框
<div class="form-group clearfix" style="margin-left:520px">
<label class="col-sm-3 control-label text-right">Status</label>
<div class="col-sm-9">
<input style="width:50px" type="checkbox" ng-model="job.status" value="" class="form-control">
</div>
我更新了plunkr。我添加了css和input-inline,但没有更改。你可以请看看 – texas697 2014-10-26 17:40:05