我想在主容器中並排放置兩個div,底部div應該適應其餘空間的寬度。兩個div滿和固定寬度
<div id="container">
<div id="left">fixed width</div>
<div id="right">rest of space width</div>
</div>
#container {
float:left;
width:100%;
}
#left, #right {
padding:50px;
background: #ccc;
vertical-align: bottom;
display: inline-block;
/* ie6/7 */
*display: inline;
zoom: 1;
}
#right {
padding:20px;
background:#000;
color:#fff;
}
我停留在這個階段http://jsfiddle.net/Z9qW3/7/
類似的問題已經被問:http://stackoverflow.com/questions/6487085/two-divs-one-fixed-width-the-other-the-rest?rq=1 – sekky
我看到它,但如果我讓我的權利適應其餘的空間,這是不是底部位置 – Megadevice
我昨天回答了類似的問題: http://stackoverflow.com/questions/19003663/divs-arrangement-html-css/19004191#19004191 –