我想減少表單輸入元素之間的差距。如何減少自舉輸入元素之間的差距
HTML:
<form class="form-horizontal width-500 center-block theme-font" role="form">
<div class="form-group form-group-sm">
<label for="name" class="control-label col-xs-4">Guardian Name</label>
<div class="col-xs-3 form-inline">
<select class="form-control" id="village" required="required">
<option>S/O</option>
<option>D/O</option>
<option>W/O</option>
<option>C/O</option>
</select>
<div class="required-icon">
<div class="text">*</div>
</div>
</div>
<div class="col-sm-5 form-inline float-left">
<input class="form-control" required="required" id="name" placeholder="Guardian Name" type="text">
<div class="required-icon">
<div class="text">*</div>
</div>
</div>
</div>
</form>
最簡單的方法是從下拉菜單中刪除所需的圖標,並刪除兩個浮動左側。然後刪除列,因爲他們給出一個寬度。 –