标签:auto absolute margin The text pad round tom relative
<style type="texts">
.*{
margin:0;
padding:0;
}
.father{
position:relative;
width:600px;
height:400px;
background:#F96;
margin:50px auto;
}
.box1,.box2,.box3,.box4{
position:absolute;
width:80px;
height:60px;
background:#F0F;
}
.box2{
right:0;
top:0;
}
.box3{
right:0;
bottom:0;
}
.box4{
left:0;
bottom:0
}
</style>
<body>
<div class="father">
<div class="box1">div1</div>
<div class="box2">div2</div>
<div class="box3">div3</div>
<div class="box4">div4</div>
</div>
标签:auto absolute margin The text pad round tom relative
原文地址:https://www.cnblogs.com/xxx0320/p/14069900.html