有没有更好的方法将孩子的高度固定到主要父母的高度?
我试过了,但它对我不起作用:
.child {
background: none repeat scroll 0 0 #5B6567;
border-radius: 5px 0 0 0;
display: inline-block;
float: left;
line-height: 30px;
padding-top: 6px;
position: relative !important;
text-align: center;
width: 12%;
height:100%
}
<div class="row-fluid">
<div class="child">
child
</div>
</div>
jsfiddle http://jsfiddle.net/WTmt6/1/ 检查我想让灰色的左边 div 固定红色一个大 .media div 的高度 ps:我不能使用固定/px 尺寸我只使用百分比/%我的布局