Home  >  Article  >  Web Front-end  >  Bootstrap grid layout column sorting example

Bootstrap grid layout column sorting example

无忌哥哥
无忌哥哥Original
2018-06-28 16:54:202160browse

<!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>
    <h4>原来的顺序</h4>
    <div>
        <div class="col-md-9 grid green">.col-md-9</div>
        <div class="col-md-3 grid pink">.col-md-3</div>
    </div>
    <h4>排序后的顺序</h4>
    <div>
        <div class="col-md-9 col-md-push-3 grid green">.col-md-9 .col-md-push-3</div>
        <div class="col-md-3 col-md-pull-9 grid pink">.col-md-3 .col-md-pull-9</div>
    </div>
</div>
</body>
</html>

The above is the detailed content of Bootstrap grid layout column sorting example. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn