我一直在使用引導v3.3.4兩個同軸文本框使用與其他控件正確對齊引導
在一個線上的兩個表單控件和正確對齊其他控制能否請你幫我在調整前兩個控件(掇下來和文本框)與底部文本框。 預先感謝您
我想在這裏使用的jsfiddle複製對齊問題:https://jsfiddle.net/bswn9o8g/
還張貼在這裏的圖片:http://postimg.org/image/4iawvs0zn/ 這裏是HTML代碼
<div class="form-horizontal">
<h4>SearchVM</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group form-inline">
@Html.LabelFor(model => model.searchBy, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EnumDropDownListFor(model => model.searchBy, "Search By", htmlAttributes: new { @class = "form-control" })
@Html.TextBox("searchByVal", null, htmlAttributes: new { @placeholder = "SID/PID ", @class = "form-control" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.FirstName, new { htmlAttributes = new { @placeholder = "First Name", @class = "form-control" } })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.MiddleName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.MiddleName, new { htmlAttributes = new { @placeholder = "Middle Name", @class = "form-control" } })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.LastName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @placeholder = "Last Name", @class = "form-control" } })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.DOB, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.DOB, new { htmlAttributes = new { @placeholder = "Birth Date", @class = "form-control" } })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.CauseNumber, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CauseNumber, new { htmlAttributes = new { @placeholder = "Cause#", @class = "form-control" } })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
你可以發佈生成的碼? – Ted
@Ted:你的意思是來自HTML頁面的「查看源代碼」? –
問題的確切性質尚不清楚。請修正您的整體問題,以更好地解釋您所遇到的確切行爲,以及預期的行爲應該是什麼。你也可能會使用生成的代碼來創建一個codepen或者jsfiddle來複制問題並在你的問題中發佈一個鏈接。這樣我們可以真正看到你的所見所聞。除此之外,也許添加一個或兩個截圖。 –