float

<!DOCTYPE html>
<html>
<head>
  <title></title>
  <style >
  .one,.two{
    width: 100px;
    height: 100px;
    background: red;
  }
  .two{
    background: blue;
    float: left;
  }
  </style>
</head>
<body>
<div class="one"></div>
<div class="two"></div>
</body>
</html>

 如果是onefloat,two回被遮掉,但是one会把two里的内容给挤掉下来

 并没有收任何影响
 

posted on 2015-11-25 16:10  xiaomie  阅读(120)  评论(0编辑  收藏  举报

导航