我想對齊我的模態中的一些輸入。我正在試圖以適當的方式設置這一點。我看過並找到了很多例子,但他們沒有和我一起工作。我瞭解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