zoukankan      html  css  js  c++  java
  • Bootstrap 按钮分组

    Bootstrap 按钮分组:

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <link rel="stylesheet" type="text/css" href="dist/css/bootstrap.css">
    </head>
    
    <body style="margin:50px 0">
        <div class="container">
            <div class="btn-group">
                <button class="btn btn-default">01</button>
                <button class="btn btn-default">02</button>
                <button class="btn btn-default">03</button>
                <div class="btn-group">
                    <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">04<span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="">01</a>
                        </li>
                        <li><a href="">02</a>
                        </li>
                        <li><a href="">03</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="btn-toolbar">
                <div class="btn-group">
                    <button class="btn btn-default" type="button">01</button>
                    <button class="btn btn-default" type="button">02</button>
                    <button class="btn btn-default" type="button">03</button>
                </div>
                <div class="btn-group">
                    <button class="btn btn-default">04</button>
                </div>
                <div class="btn-group btn-group-lg">
                    <button class="btn btn-default" type="button">01</button>
                    <button class="btn btn-default" type="button">02</button>
                    <button class="btn btn-default" type="button">03</button>
                </div>
                <div class="btn-group">
                    <button class="btn btn-default" type="button">01</button>
                    <button class="btn btn-default" type="button">02</button>
                    <button class="btn btn-default" type="button">03</button>
                </div>
                <div class="btn-group btn-group-sm">
                    <button class="btn btn-default" type="button">01</button>
                    <button class="btn btn-default" type="button">02</button>
                    <button class="btn btn-default" type="button">03</button>
                </div>
                <div class="btn-group btn-group-xs">
                    <button class="btn btn-default" type="button">01</button>
                    <button class="btn btn-default" type="button">02</button>
                    <button class="btn btn-default" type="button">03</button>
                </div>
            </div>
        </div>
        <script type="text/javascript" src="dist/jQuery/jquery-1.11.3.js"></script>
        <script type="text/javascript" src="dist/js/bootstrap.js"></script>
    </body>
    
    </html>
  • 相关阅读:
    【Java】XML编码
    【GIS】ArcGIS瓦片组织规则
    论写代码的合理性
    快速解决github网页图片显示不了的问题
    pyqt5-tools安装后 desinner.exe 报错 PyQt5 the application failed to start because no Qt platform could be initialized 最强大快速的解决
    Prometheus基本概述
    sql在group by 中使用case when
    【sql server自动化】sql server自动化备份
    (4.45)数据库编程中的三种性能模式比较
    【redis故障处理】redis哨兵节点之间无法互相识别通信
  • 原文地址:https://www.cnblogs.com/stono/p/4889087.html
Copyright © 2011-2022 走看看