3
如何使此标签对齐正确?我只能左对齐。我必须覆盖引导程序4默认值justify-content: center
到justify-content: right !important;
但它与左边对齐。我怎样才能将它对齐?使标签对齐使用引导程序4模式
<div class="modal-body">
<form class="form-horizontal">
<div class="form-inline">
<label class="col-md-4">Type</label>
<input class="col-md-8" type="email" class="form-control">
</div>
</form>
</div>
CSS:
div.form-inline label.col-md-4 {
justify-content: right !important;
}
感谢。我如何使输入组的标签与中心对齐? – Joseph
我不太确定我明白你的意思... –
我上传了一张照片。我的意思是我怎样才能使空间在“类型”和“输入表单”上都是一样的,所以它看起来正确对齐。所以它看起来甚至在左侧和右侧。 – Joseph