我想水平对齐我的视图表单页面,但无法找出一种方法。以下是该页面的快照。请帮忙。例如,城市和城市名称不一致。我怎样才能做到这一点 ?对齐问题与引导
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