Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div class="a">
    <div class="b1">11111</div>
    <div class="divNoFloat">这是一个不浮动的div, 文字虽然会让出区域,但起始处从边界开始,因为1111是浮动的,不在文档流之中</div>
    <span>this is a span, 同级的inline元素 ,说明了:<strong> 文字总是会让出float空间,本意就是图文混排</strong></span>
    <div class="b2">22222</div>
    <div class="b3">33333</div>
    <div></div>
  </div>
  <hr>
  <div class="a">
    <div class="fa">
        this is a father
        <div class="son"> son, 通常son中的内容会撑起father的高度,但当float了之后,由于不在文档流之中,自然也不会再撑起了,此时需要<strong>clear</strong> </div>
    </div>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
13hooppro
0viewers