当前位置: 萬仟网 > IT编程>网页制作>CSS > 两列

两列

2020年01月14日  | 萬仟网IT编程  | 我要评论
<!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>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
Copyright © 2017-2020  萬仟网 保留所有权利. 粤ICP备17035492号-1
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com