【发布时间】:2015-01-01 10:42:06
【问题描述】:
我有两列,一列具有灵活宽度,另一列应扩展到剩余宽度。 我有这样的设置:
.container {
height: auto;
overflow: hidden;
}
.right {
width: 80px;
float: right;
background: #aafed6;
position:relative; /* Needed for positioning an element absolutely inside this dib */
}
.left {
float: none; /* not needed, just for clarification */
background: #e8f6fe;
/* the next props are meant to keep this block independent from the other floated one */
width: auto;
overflow: hidden;
}
这是小提琴:http://jsfiddle.net/dms53yt8/
我的问题是,我希望右 div 与左 div 具有相同的高度。如何在保持当前结构的同时做到这一点?
谢谢!乌里
【问题讨论】: