如何擺脫突出顯示的空間並使最後兩行與前兩個對齊?引導窗體設計間距問題
以下是HTML
<div class="col-md-6">
<div class="row">
<div class="form-group mb">
<label class="col-sm-3 control-label input-sm">Claim Ref</label>
<div class="col-sm-9">
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="row">
<div class="form-group mb">
<label class="col-sm-3 control-label input-sm">File Note Date</label>
<div class="col-sm-9">
<input type="text" class="form-control" />
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="row">
<div class="form-group mb">
<label class="col-sm-3 control-label input-sm">Created By</label>
<div class="col-sm-9">
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="row">
<div class="form-group mb">
<label class="col-sm-3 control-label input-sm">Created Date</label>
<div class="col-sm-9">
<input type="text" class="form-control" />
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="row">
<div class="form-group mb">
<label class="col-sm-2 control-label input-sm">Short Description</label>
<div class="col-sm-10">
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="row">
<div class="form-group mb">
<label class="col-sm-2 control-label input-sm">Detail</label>
<div class="col-sm-10">
<textarea class="form-control"></textarea>
</div>
</div>
</div>
<br />
<div class="footer text-right">
<button type="button" class="mb-sm btn btn-default">Discard Changes</button>
<button type="submit" class="mb-sm btn btn-primary">Save Changes</button>
</div>
</div>
謝謝。 @喬納森的答案解決了問題 – chamara
仍然是一個非常有創意的解決方案! :) – Jonathan
謝謝!我同意@喬納森的答案確實是正確的。在這方面,寬度的計算方式相當混亂,我不確定如何用純Bootstrap來補償。榮譽給你喬納森尋找方式 - upvoted :) –