我如何摆脱表格组余量保留

时间:2020-03-04 15:55:02

标签: html css forms twitter-bootstrap margin

我遇到了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

1 个答案:

答案 0 :(得分:0)

更改填充而不是边距。我将其基于chrome调试器框模型中使用的颜色。绿色位是带有蓝色内容的空白。

相关问题