對準我的觀點類似以下按鈕同一行
我試圖向下對準這個按鈕就像那些下降和標籤,在同一行
<div class="row">
<div class="col-xs-6">
<div class="form-group">
@Html.LabelFor(m => m.SelectedMonth, htmlAttributes: new { @class = "control-label col-xs-6" })
<div class="col-xs-6">
@Html.DropDownListFor(model => model.SelectedMonth, (IEnumerable<SelectListItem>)ViewBag.Months, "Month", new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.SelectedMonth, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
@Html.LabelFor(m => m.SelectedYear, htmlAttributes: new { @class = "control-label col-xs-6" })
<div class="col-xs-6">
@Html.DropDownListFor(model => model.SelectedYear, (IEnumerable<SelectListItem>)ViewBag.Years, "Year", new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.SelectedYear, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<div style="width:70%; float:left; height: 20px; text-align:left" class="control-label col-xs-6">
<input type="submit" value="Download Data File"/>
</div>
</div>
</div>
</div>
請告知
你可以創建https://jsfiddle.net/演示? –
@ G.L.P我知道你明白了嗎? – kez
你需要像2dropdown一樣的所有元素,並提交按鈕? – Kapil