我有以下佈局:推COL-MD-6格到下一行
,我想強調的div移動到下一行,右下面的「座位數」,所以我想添加一個「col-md-offset-6」就可以了。然而,結果是這樣的:
代碼:
<div class="col-md-3" style="padding-left: 0; padding-top: 15px;">
<label class="control-label">@Localizer.GetWebTranslation("Locations", "Number of seats")</label>
@Html.EditorFor(model => model.NumberOfSeats, new { htmlAttributes = new { @class = "form-control", @style = "width: 70px", @data_bind = "value : NumberOfSeats" } })
</div>
<div class="col-md-3" style="padding: 0; padding-top: 30px">
<input data-bind="checked: Terrace" id="checkbox-4" class="checkbox-custom" name="checkbox-4" type="checkbox">
<label for="checkbox-4" class="checkbox-custom-label control-label">@Localizer.GetWebTranslation("Products", "Terrace")</label>
</div>
<div class="col-md-6" style="padding-right: 0; padding-left: 15px; padding-top: 15px">
<label class="control-label">@Localizer.GetWebTranslation("LocationProfile", "Location Profiles")</label>
<input class="form-control" id="profilesAutocomplete" data-bind="textInput: $root.SelectedProfileName" placeholder="@Localizer.GetWebTranslation("Locations", "Search.. (e.g. Catering, Vinery)")" />
</div>
什麼是做到這一點的正確方法?
請顯示您的代碼。 – WillardSolutions
將div的座位數設置爲12列而不是 – j08691
@ j08691「numberofseats」和「terrace」div各自爲「col-md-3」。增加了代碼。 –