我想水平對齊我的視圖表單頁面,但無法找出一種方法。以下是該頁面的快照。請幫忙。例如,城市和城市名稱不一致。我怎樣才能做到這一點 ?對齊問題與引導
For example, the city and the city name are not aligned
<div class="well well-sm">
<h4>Contact Information</h4>
<div class="form-group">
@Html.LabelFor(model => model.MailingAddress, htmlAttributes: new { @class = "control-label col-md-2 " })
<div class="col-md-10">
@Html.DisplayFor(model => model.MailingAddress, new { htmlAttributes = new { @class = "form-control", placeholder = @Html.DisplayNameFor(m => m.MailingAddress) } })
</div>
</div>
</div>
你可以請包括代碼? –
如果您覆蓋CSS中的任何樣式,請將其包含在內。 –
我沒有覆蓋任何CSS樣式。這裏是我的代碼: – User123