<div class="father"> <div class="float"></div> </div> <div>我是内容 </div>
.father:after { content: ''; display: table; clear: both; } .float { float:left; width: 60px; height: 64px; background-color: #ff00ff; } .father + div { margin-top: -2px; }