Bootstrap柵格布局的列位移執行個體

來源:互聯網
上載者:User
<!DOCTYPE html><html><head>    <meta charset="UTF-8">    <link rel="stylesheet" href="dist/css/bootstrap.css">    <script src="jquery-3.2.1.js"></script>    <script src="dist/js/bootstrap.js"></script>    <title>柵格布局的列位移</title>    <style>        .grid {            border: 1px solid #696969;            border-radius: 5px;            background-color: lightskyblue;            min-height: 30px;            text-align: center;            line-height: 30px;        }        .green {            background-color: lightgreen;        }        .pink {            background-color: lightpink;        }    </style></head><body><div>    <div>        <div class="col-md-4 grid">.col-md-4</div>        <div class="col-md-4 col-md-offset-4 grid">.col-md-4 .col-md-offset-4</div>    </div>    <div>        <div class="col-md-3 col-md-offset-3 grid">.col-md-3 .col-md-offset-3</div>        <div class="col-md-3 col-md-offset-3 grid">.col-md-3 .col-md-offset-3</div>    </div>    <div>        <div class="col-md-6 col-md-offset-3 grid">.col-md-6 .col-md-offset-3</div>    </div></div></body></html>
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.