美文网首页
css----浮动

css----浮动

作者: 3e0a50393df8 | 来源:发表于2018-08-12 19:18 被阅读0次
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>浮动</title>
        <style type="text/css">
            .box{
                width: 1600px;
                height: 200px;
                background-color: red;
    
                float: left;
            }
            .box1{
                width: 200px;
                height: 200px;
                background-color: yellow;
                float: left;
            }
            .box2{width: 200px;
                height: 200px;
                background-color: green;
                float: left;
            }
    
        </style>
    </head>
    <body>
        <div class="box"></div>
        <div class="box1"></div>
        <div class="box2"></div>
    
        
    </body>
    </html>
    

    相关文章

      网友评论

          本文标题:css----浮动

          本文链接:https://www.haomeiwen.com/subject/sptqbftx.html