zoukankan      html  css  js  c++  java
  • bootstrap中的按钮组

    第一、基本的按钮组:

    <div class="btn-group">

    <button type="button" class="btn btn-default">default按钮</button>

    <button type="button" class="btn btn-success"> success按钮</button>

    </div>

    第二、按钮组工具条(包含多个按钮组)及控制按钮组大小:

    <div class="btn-toolbar" role="toolbar">

    <div class="btn-group btn-group-lg">

    <button type="btn btn-info">info按钮</button>

    <button type="btn btn-danger">danger按钮</button>

    </div>

    <div class="btn-group btn-group-sm">

    <button type="button" class="btn btn-warning">warning按钮</button>

    <button type="button" class="btn btn-primary">primary按钮</button>

    <button>

    </div>

    <div class="btn-group btn-group-xs">

    <button type="button" class="btn btn-info">info按钮</button>

    <button type="button" class="btn btn-danger">danger按钮</button>

    </div>

    </div>

    第三、垂直排列的按钮组:

    <div class="btn-group-vertical ">

    <button type="button" class="btn btn-info">info按钮</button>

    <button type="button" class="btn btn-success">success按钮</button>

    <button type="button" class="btn btn-danger">danger按钮</button>

    </div>

    第四、内嵌按钮组和下拉菜单:

    <div class="btn-group">

    <button type="button" class="btn btn-success">手机</button>

    <button type="button" class="btn btn-info">电脑</button>

    <div class="btn-group dropdown">

    <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">

    车型

    <span class="caret"></span>

    </button>

    <ul class="dropdown-menu">

    <li><a href="#">保时捷</a></li>

    <li><a href="#">兰博基尼</a></li>

    </ul>

    </div>

    </div>

    效果图如下:

  • 相关阅读:
    [轉]SQLServer : EXEC和sp_executesql的区别
    CSS 中文字体
    [转]71种 menu css源码
    DataTable做為數據源手動分頁
    [轉]9个优秀的基于 JavaScript 与 CSS 的 Web 图表框架
    [轉]10 Tools to help you select a Web 2.0 Color Palette
    [轉]ASP模拟POST提交请求上传文件
    Web配色資源
    [轉]sqlhelper 下载 使用指南
    [轉]查看SQL Server数据库连接
  • 原文地址:https://www.cnblogs.com/professional-NET/p/4738157.html
Copyright © 2011-2022 走看看