【发布时间】:2016-03-08 22:30:27
【问题描述】:
我有以下布局http://jsbin.com/joyetaqase/1/edit?html,css,output
<div class="row">
<div class="col">
<h2>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</h2>
<p>my footer</p>
</div>
<div class="col">
<h2>Lorem Ipsum.</h2>
<p>my footer</p>
</div>
</div>
使用 flexbox 我试图使 .col div 具有相同的高度和宽度。
我的问题是:我怎样才能把<p> 贴在盒子的底部?
布局应如下所示:
我知道我可以将 <p> 设为绝对值并使用 bottom:0; 但我想用 flexbox 来实现,这可能吗?
谁能解释一下?
【问题讨论】: