【发布时间】:2020-06-17 04:11:27
【问题描述】:
我遇到了 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
【问题讨论】:
-
您使用的是什么版本的 Bootstrap?请发帖minimal reproducible example
-
我正在使用 Boostrap4。我读了那个帖子,但仍然不知道如何制作一个可重现的例子。仅删除边距似乎有点过火
标签: html css forms twitter-bootstrap margin