<div class="container"> <div class="box">left</div> <div class="box">right</div> </div> 平时我们想让两个div在并排占据左右两侧,我们设置 .box{ float:left;