css-项目布局 - 草稿

2018-10-26  本文已影响28人  杰伊_约翰

页面布局

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
        
        .box{
            width: 800px;
            height: 100px;
            background-color: blue;
            margin: 10px auto;

        }
        .box1{
            width: 800px;
            height:600px;
            background-color: pink;
            margin:10px auto;
        }
        .box3{
            width: 170px;
            height: 300px;
            background-color: gold;
            float: left;
            margin: 10px;

        }
        .box4{
            width: 170px;
            height: 300px;
            background-color: gold;
            float: left;
            margin: 10px;

        }
        .box5{
            width: 400px;
            height: 300px;
            background-color: green;
            float: left;
            margin: 10px;

        }
    </style>
</head>
<body>
    <div class="box"></div>
    <div class='box1'>
        <div class="box3"></div>
        <div class="box5"></div>
        <div class="box4"></div>

    </div>
</body>
</html>
image.png
上一篇 下一篇

猜你喜欢

热点阅读