两列

荒凉一梦 提交于 2020-01-13 15:39:49
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>两列</title>
    <style>
        .container{
            height:   1000px;
            width:  1000px;
            /* display: inline-block; */
            position: relative;
            margin:   0 auto;
            border: 1px solid #fcc;
          /* text-align: center; */

        }
        .box1{
            border: 1px solid red;
            float:left;
            width: 30%;
            height: 100%;
        }
    
      .box2{
            border: 1px solid  blue;
            float:left;
            width: 60%;
            height: 100%;

        }
        .clearfix{
            clear: both;

        }
        .box3{
            border: 1px solid  green;
            float:left;
            width: 60%;
            height: 300px;
            border-radius:  10px;

        }
    
    </style>
</head>
<body>
    <div class="container">
        <div class="box1">

        </div>
        <div class="box2">

        </div>
        <div class="box3">

        </div>

    </div>
</body>
</html>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!