我遇到了form-group具有这种烦人的余量的问题。
这是我的HTML:
<div class="form-group col-md-4">
<label>End Time <span style="color: red">*</span></label>
@Html.TextBoxFor(x => x.FormModel.EndDateTime, new { @class = "form-control timepicker" })
</div>
我尝试过
.form-group col-md-4 {
margin-left: 0px !important;
}
.form-group {
margin-left: 0px !important;
}
但是,当我这样做
.form-group {
margin-bottom: 0px;
}
它有效,但这与我要执行的操作无关。
以下是我要删除的内容:Margin-Left
答案 0 :(得分:0)
更改填充而不是边距。我将其基于chrome调试器框模型中使用的颜色。绿色位是带有蓝色内容的空白。