2
如何將輸入字段與屏幕截圖中所示的左側對齊?Bootstrap並排對齊兩列
這裏是我的代碼,我都試過,但沒有運氣...
<div class="col-md-6">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="Name" placeholder="Name">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Address</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="Address" placeholder="Address">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">City</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="City" placeholder="City">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Country</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="Country" placeholder="Country">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">A 1</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="City" placeholder="City">
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">B 1</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="City" placeholder="City">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">B 2</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="Country" placeholder="Country">
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">C 3</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="Country" placeholder="Country">
</div>
</div>
</div>