定位布局
*{
margin:0;
padding:0;
width:3000px;
}
.box1{
background:#f00;
height:300px;
}
.box{
background:yellow;
height:200px;
}
.box2{
background:#0f0;
height:100px;
width:60px;
margin-top:50px;
}
.box3{
background:#00f;
height:300px;
}
.box4{
background:#888;
height:50px;
width:120px;
}
查看更多关于HTML中的嵌套的div,子DIV设置的margin样式怎么变成父DIV的样式了_html/css_的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did105263