css----浮动

2018-08-12  本文已影响0人  3e0a50393df8
<!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>
上一篇 下一篇

猜你喜欢

热点阅读