HTML
<div class="container">
<div class="left">
<div class="panel">My Panel</div>
</div>
<div class="right"></div>
</div>
CSS
.container {
background-color: #000;
margin: 130px auto;
min-height: 320px;
width: 940px;
overflow: auto;
padding: 0px 10px;
}
.left {
width: 600px;
margin-right: 20px;
float: left;
}
.right {
width: 320px;
height: 100% auto;
overflow: auto;
background-color: blue;
float: right;
}
.panel {
background-color: red;
}
问题:
如何添加另一个可以放在下面的 div div.right
?我要放置的 div.right
将是.under_right
,CSS 是:
.under_right {
width: 320px;
height: 100% auto;
overflow: auto;
background-color: gold;
}