【发布时间】:2020-12-16 07:23:27
【问题描述】:
我使用flex display parent of flex display 添加div。
HTML:
<div class="d-flex align-items-start flex-column" style="height: 100px;">
start
</div>
<div class="d-flex align-items-end flex-column" style="height: 100px;">
<div class="d-flex justify-content-between align-content-center">
<div>
left
</div>
<div>
right
</div>
</div>
</div>
在行动中,我需要在left 和right 中显示两个div,因此添加justify-content-between 类,但是这个类不起作用并且不会在左右显示。如何解决这个问题?!
演示here
【问题讨论】:
-
只需从父子https://jsfiddle.net/qLmg4wc8/删除 align-items-end
标签: css twitter-bootstrap bootstrap-4 flexbox