的高度,我有两个孩子<div>
元素父容器<div>
的内部,如图:让孩子div的最高孩子
<div class="row">
<div class="item">
<p>Sup?</p>
</div>
<div class="item">
<p>Sup?</p>
<p>Wish that other guy was the same height as me</p>
</div>
</div>
我尝试以下CSS:
.item {
background: rgba(0,0,0,0.1);
display: inline-block;
}
.row {
border: 1px solid red;
}
我怎样才能得到两个孩子(div.item
)成为最高孩子的身高?
的jsfiddle:http://jsfiddle.net/7m4f7/
这个问题已经被问进行多次。看到这个问题。 http://stackoverflow.com/questions/16592597/issue-with-responsive-columns-having-equal-height – Cam
简单。简单。 [带有Flexbox的等高柱](http://stackoverflow.com/a/33815389/3597276)。 –