• Bootstrap Button Groups


    Button Groups
    Bootsrap allows you to group a series of buttons together(on a single line) in a button group:
     
    use a <div> element with class .btn-group to create a button group:
    <div class="btn-group">
      <button type="button" class="btn btn-primary">Apple</button>
      <button type="button" class="btn btn-primary">Samsung</button>
      <button type="button" class="btn btn-primary">Sony</button>
    </div>
     
    the key point is .btn-group use display style:inline-block.
    Tip: Instead of applying button sizes to every button in a group, use class .btn-group-lg|sm|xs to size all buttons in the group:
     
    this is the key point.
    .btn-lg,
    .btn-group-lg > .btn {
      padding: 10px 16px;
      font-size: 18px;
      line-height: 1.3333333;
      border-radius: 6px;
    }
     
    Example     
    <div class="btn-group btn-group-lg">
      <button type="button" class="btn btn-primary">Apple</button>
      <button type="button" class="btn btn-primary">Samsung</button>
      <button type="button" class="btn btn-primary">Sony</button>     
    </div>     
     
    Vertical Button Groups
    Bootstrap also supports vertical button groups:
     
    Use the class .btn-group-vertical to create a vertical button group:

    Example

    <div class="btn-group-vertical">
      <button type="button" class="btn btn-primary">Apple</button>
      <button type="button" class="btn btn-primary">Samsung</button>
      <button type="button" class="btn btn-primary">Sony</button>
    </div>
     
    this is the key point.     
    .btn-group-vertical > .float_left{
          display: block;
          float: none;
          100%;
          max- 100%;
        }
     
     
     
  • 相关阅读:
    Android笔记:数据储存
    Android笔记:管理所有活动
    Android随笔:属性
    Android笔记:限定符
    Android笔记:ninepatch
    Android笔记:获取屏幕信息
    js自动完成
    动态生成实体类
    EF框架学习手记
    js遮罩效果
  • 原文地址:https://www.cnblogs.com/jianglijs/p/7390035.html
Copyright © 2020-2023  润新知