1. 程式人生 > >css-佈局的漂浮

css-佈局的漂浮

  float
    ** 屬性值
    left: 文字流向物件的右邊
    right:文字流向物件的左邊

<html>
    <head>
        <title>World</title>
        <style type="text/css">
            div {
                border:2px solid blue;
                width:200px;
                height:100px;
            }
            #div11 
{ float:left; } #div12 { float:left; } </style> </head> <body> <div id="div11">AAAAAAAAAAA</div> <div id="div12">BBBBBBBBBBB</div> <div id="div13">CCCCCCCCCCC</div> </body> </html>

  效果如下: