我有兩列,一個寬度靈活,一個應擴展到剩餘寬度。 我有這樣的設置是這樣的:使浮動div擴展到頁面高度
.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/
我的問題是,我想正確的股利有同等的高度,左股利。我如何在保持當前結構的同時做到這一點?
謝謝!烏里
http://stackoverflow.com/questions/1205159/html-css-making-two-floating-divs-the-same-height♦HTTP://計算器。 com/questions/2114757/css-equal-height-columns♦http://stackoverflow.com/questions/14763363/how-to-create-equal-height-columns-in-pure-css我相信你會在SO上找到其他類似的問題。 – 2014-11-05 09:45:48