【发布时间】:2021-03-11 23:52:00
【问题描述】:
如何将引导标签放在复选框下方?
.checkbox-lg .custom-control-label::before,
.checkbox-lg .custom-control-label::after {
width: 1.55rem;
height: 1.55rem;
}
.checkbox-lg .custom-control-label {
padding-left: 6px;
}
<div class="custom-control custom-checkbox checkbox-lg">
<input type="checkbox" class="custom-control-input" id="delivery-checkbox-18" name="deliveryAddresses[]" value="">
<label class="custom-control-label" for="delivery-checkbox-18">
fsdfs <br>
sdfsd <br>
sdfsdf <br>
434 sdfsd
</label>
</div>
我得到了这个结果
但我想要这个结果
如果我先添加更多<br>,我会得到这个(上面有更多空间)
【问题讨论】:
-
在
-
您是否尝试过使用显示属性? developer.mozilla.org/en-US/docs/Web/CSS/display
标签: html css twitter-bootstrap checkbox bootstrap-4