<div class="area clearfix">
<div class="box"></div>
</div>
css
.area {
width: 400px;
height: 400px;
background: red;
}
.area .box {
width: 100px;
height: 100px;
background: green;
float: right;
margin-left:1000px
}
这里的margin-left为什么失效?因为右浮动的关系吗?
右浮动用margin-right