关于 div 嵌套
我用chrome查看,<div class="list_manager_top5_in"> margin的上边5px,怎么在<div class="list_manager_top5_out">外边了?
不是应该包含在里边的吗,求解?
<div class="list_manager_top5_out">
<div class="list_manager_top5_in">
<div >
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div >
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
.list_manager_top5_out
{
width:100%;
clear:both;
height: 100px;
background-color: #E4ECF5;
}
.list_manager_top5_in
{
padding:5px 0 0 25px;
margin:5px;
clear:both;
border:1px solid black;
}
.list_manager_top5_out
{
width:100%;
clear:both;
height: 100px;
background-color: #E4ECF5;
(padding-top:5px;)
}
.list_manager_top5_in
{
padding:5px 0 0 25px;
margin:5px;
clear:both;
border:1px solid black;
(margin-top:0;)
}