Button groups

Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.

Best practices

We recommend the following guidelines for using button groups and toolbars:

  • Always use the same element in a single button group, <a> or <button>.
  • Don't mix buttons of different colors in the same button group.
  • Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.

Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.

Default example

Here's how the HTML looks for a standard button group built with anchor tag buttons:

<div class="btn-group">
  <button class="btn">1</button>
  <button class="btn">2</button>
  <button class="btn">3</button>
</div>

Toolbar example

Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

<div class="btn-toolbar">
  <div class="btn-group">
    ...
  </div>
</div>

Checkbox and radio flavors

Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.

Get the javascript »

Dropdowns in button groups

Heads up! Buttons with dropdowns must be individually wrapped in their own .btn-group within a .btn-toolbar for proper rendering.


Button dropdowns

Example markup

Similar to a button group, our markup uses regular button markup, but with a handful of additions to refine the style and support Bootstrap's dropdown jQuery plugin.

<div class="btn-group">
  <a class="btn dropdown-toggle" data-toggle="dropdown" href="http://iercu.qepz1.lnzo.pdupdcd.cn/">
    Action
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu">
    <!-- dropdown menu links -->
  </ul>
</div>

Works with all button sizes

Button dropdowns work at any size. your button sizes to .btn-large, .btn-small, or .btn-mini.

Requires javascript

Button dropdowns require the Bootstrap dropdown plugin to function.

In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.


Split button dropdowns

Overview and examples

Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.

Sizes

Utilize the extra button classes .btn-mini, .btn-small, or .btn-large for sizing.

<div class="btn-group">
  ...
  <ul class="dropdown-menu pull-right">
    <!-- dropdown menu links -->
  </ul>
</div>

Example markup

We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.

<div class="btn-group">
  <button class="btn">Action</button>
  <button class="btn dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <!-- dropdown menu links -->
  </ul>
</div>

Dropup menus

Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu. It will flip the direction of the .caret and reposition the menu itself to move from the bottom up instead of top down.

<div class="btn-group dropup">
  <button class="btn">Dropup</button>
  <button class="btn dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <!-- dropdown menu links -->
  </ul>
</div>




Multicon-page pagination

When to use

Ultra simplistic and minimally styled pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.

Stateful page links

Links are customizable and work in a number of circumstances with the right class. .disabled for unclickable links and .active for current page.

Flexible alignment

Add either of two optional classes to change the alignment of pagination links: .pagination-centered and .pagination-right.

Examples

The default pagination component is flexible and works in a number of variations.

Markup

Wrapped in a <div>, pagination is just a <ul>.

<div class="pagination">
  <ul>
    <li><a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">Prev</a></li>
    <li class="active">
      <a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">1</a>
    </li>
    <li><a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">2</a></li>
    <li><a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">3</a></li>
    <li><a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">4</a></li>
    <li><a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">Next</a></li>
  </ul>
</div>

Pager For quick previous and next links

About pager

The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.

Optional disabled state

Pager links also use the general .disabled class from the pagination.

Default example

By default, the pager centers links.

<ul class="pager">
  <li>
    <a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">Previous</a>
  </li>
  <li>
    <a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">Next</a>
  </li>
</ul>

Aligned links

Alternatively, you can align each link to the sides:

<ul class="pager">
  <li class="previous">
    <a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">&larr; Older</a>
  </li>
  <li class="next">
    <a href="http://iercu.qepz1.lnzo.pdupdcd.cn/">Newer &rarr;</a>
  </li>
</ul>

Labels Markup
Default <span class="label">Default</span>
Success <span class="label label-success">Success</span>
Warning <span class="label label-warning">Warning</span>
Important <span class="label label-important">Important</span>
Info <span class="label label-info">Info</span>
Inverse <span class="label label-inverse">Inverse</span>

About

Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.

Available classes

Name Example Markup
Default 1 <span class="badge">1</span>
Success 2 <span class="badge badge-success">2</span>
Warning 4 <span class="badge badge-warning">4</span>
Important 6 <span class="badge badge-important">6</span>
Info 8 <span class="badge badge-info">8</span>
Inverse 10 <span class="badge badge-inverse">10</span>

Hero unit

Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.

Markup

Wrap your content in a div like so:

<div class="hero-unit">
  <h1>Heading</h1>
  <p>Tagline</p>
  <p>
    <a class="btn btn-primary btn-large">
      Learn more
    </a>
  </p>
</div>

Hello, world!

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

Learn more


Page header

A simple shell for an h1 to appropriately space out and segment sections of content on a page. It can utilize the h1's default small, element as well most other components (with additional styles).

<div class="page-header">
  <h1>Example page header</h1>
</div>

Default thumbnails

By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.

Highly customizable

With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.

  • Thumbnail label

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    Action Action

  • Thumbnail label

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    Action Action

Why use thumbnails

Thumbnails (previously .media-grid up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.

Simple, flexible markup

Thumbnail markup is simple—a ul with any number of li elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.

Uses grid column sizes

Lastly, the thumbnails component uses existing grid system classes—like .span2 or .span3—for control of thumbnail dimensions.

The markup

As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:

<ul class="thumbnails">
  <li class="span3">
    <a href="http://iercu.qepz1.lnzo.pdupdcd.cn/" class="thumbnail">
      <img src="http://placehold.it/260x180" alt="">
    </a>
  </li>
  ...
</ul>

For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a> for a <div> like so:

<ul class="thumbnails">
  <li class="span3">
    <div class="thumbnail">
      <img src="http://placehold.it/260x180" alt="">
      <h5>Thumbnail label</h5>
      <p>Thumbnail caption right here...</p>
    </div>
  </li>
  ...
</ul>

More examples

Explore all your options with the various grid classes available to you. You can also mix and match different sizes.


Lightweight defaults

Rewritten base class

With Bootstrap 2, we've simplified the base class: .alert instead of .alert-message. We've also reduced the minimum required markup—no <p> is required by default, just the outer <div>.

Single alert message

For a more durable component with less code, we've removed the differentiating look for block alerts, messages that come with more padding and typically more text. The class also has changed to .alert-block.


Goes great with javascript

Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.

Get the plugin »

Example alerts

Wrap your message and an optional close icon in a div with simple class.

Warning! Best check yo self, you're not looking too good.
<div class="alert">
  <button class="close" data-dismiss="alert">×</button>
  <strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>

Heads up! iOS devices require an href="http://iercu.qepz1.lnzo.pdupdcd.cn/" for the dismissal of alerts. Be sure to include it and the data attribute for anchor close icons. Alternatively, you may use a <button> element with the data attribute, which we have opted to do for our docs. When using <button>, you must include type="button" or your forms may not submit.

Easily extend the standard alert message with two optional classes: .alert-block for more padding and text controls and .alert-heading for a matching heading.

Warning!

Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

<div class="alert alert-block">
  <a class="close" data-dismiss="alert" href="http://iercu.qepz1.lnzo.pdupdcd.cn/">×</a>
  <h4 class="alert-heading">Warning!</h4>
  Best check yo self, you're not...
</div>

Contextual alternatives Add optional classes to change an alert's connotation

Error or danger

Oh snap! Change a few things up and try submitting again.
<div class="alert alert-error">
  ...
</div>

Success

Well done! You successfully read this important alert message.
<div class="alert alert-success">
  ...
</div>

Information

Heads up! This alert needs your attention, but it's not super important.
<div class="alert alert-info">
  ...
</div>

Examples and markup

Basic

Default progress bar with a vertical gradient.

<div class="progress">
  <div class="bar"
       style="width: 60%;"></div>
</div>

Striped

Uses a gradient to create a striped effect (no IE).

<div class="progress progress-striped">
  <div class="bar"
       style="width: 20%;"></div>
</div>

Animated

Takes the striped example and animates it (no IE).

<div class="progress progress-striped
     active">
  <div class="bar"
       style="width: 40%;"></div>
</div>

Options and browser support

Additional colors

Progress bars use some of the same button and alert classes for consistent styles.

Striped bars

Similar to the solid colors, we have varied striped progress bars.

Behavior

Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.

If you use the .active class, your .progress-striped progress bars will animate the stripes left to right.

Browser support

Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.

Opera and IE do not support animations at this time.

Wells

Use the well as a simple effect on an element to give it an inset effect.

Look, I'm in a well!
<div class="well">
  ...
</div>

Close icon

Use the generic close icon for dismissing content like modals and alerts.

<button class="close">&times;</button>

iOS devices require an href="http://iercu.qepz1.lnzo.pdupdcd.cn/" for click events if you rather use an anchor.

<a class="close" href="http://iercu.qepz1.lnzo.pdupdcd.cn/">&times;</a>
鸿运驾校科三宏达驾校有保过的吗鸿运驾校科三视频恒通驾校预约科三恒通驾校总校在哪里鸿运驾校科三衡阳市神鹰驾校图片鸿运驾校科三视频红山驾校微信公众号衡水个驾校电话号码恒星学院驾校叫什么区别鸿运驾校科三衡阳市船山驾校怎么样恒星学院驾校叫什么鸿运驾校科三视频衡水个驾校电话号码衡阳市中宏驾校教练恒星学院驾校恒星学院驾校洪雅驾校学费宏达驾校科三报考恒星学院驾校红山驾校微信公众号宏顺驾校科目一试题恒通驾校总校在哪里宏光驾校16路站名是啥恒通驾校预约科三宏光驾校有什么车洪雅驾校那个好衡阳市船山驾校怎么样 丧尸突然在校园出现,校园只剩二百多名同学包括四个校花,我们的主角苏长影会怎么做呢?他会拿下四个校花冲出校园,过上神仙般的生活吗?我为仙帝,碾压世间一切敌!这是一个称作《灵脉大陆》的神奇世界,这个世界没有魔法,没有武术,没有战斗力,却有着神奇的灵脉。这个世界的每个人在10岁的时候都会在灵脉大殿中,在灵兽师或灵斗士的帮助下进行灵脉觉醒。灵脉可以增强体魄,辅助人们的日常生活。有特殊天赋的人可以通过自身灵脉或召唤灵兽进行修炼并进行战斗,这些人被称为《灵斗士》和《灵兽师》 亡国遗珠沐岚(女主),一步步修炼灵脉,在灵兽(男主)望天君的辅佐下,由凡人之躯修炼成神界监察人界的使者判官,最终铲除了灵脉大陆上的邪恶力量,报了亡国之仇,成为了灵脉大陆上强者。赵阳意外绑定可以往返现代与明末的传送门。 穿过传送门,对面是气势汹汹,向着他冲刺而来的八旗骑兵。 数次尝试都铩羽而归,赵阳直接上交传送门,与官方合作。 当官方看到赵阳展示的另一个世界后,整个大夏都为之轰动。 一个星球的资源,一个全新的未开发世界! 大夏官方第一时间下定决心,制定绝密计划,设置最高权限。 终于,再次踏入明末大地的赵阳。 身后,是一条蓄势待发的庞然巨龙……一个天才弟子,一位蜀山首徒。且看他的风花雪月又是怎样的呢? 从幼稚到成熟..... 并非人人生来就是勾心斗角之辈一个突如其来的灾难,全球陷入了无尽的黑夜之中,层出不穷的文明和怪物开始出现了,神明、机甲、超自然力量,在巨变到来之后,所有人都在想办法活着,而一个叫做零号的人类出现了,他…… 自古天生大气运者,无不是天生富贵,步步生莲,奇遇不断,可为什么,我却天生霉运,是个魔王,每天等着勇士,来砍我?抬步纵横十万里,眺目远望百万天,黑衣染血无踪痕,幽凉悲笑讽苍天。 以尸恶名行义事,横眉冷视万夫狂,待回首,从头走,真假是非纵天行。 星冢,为古往今来历代大能之安息之地,于九霄之上,护众生之安。 百年前,初神降临,血战再起,各方大能争夺“黑石”,造成北方天穹星冢俱毁。 历史的目光被拉回了初古那段黑暗时代,一张墨玉面具,成为了再一次反抗的标志……儿时一场梦,醒时终陶醉。 一辆豪车停下在叶雨面前摇下车窗,一位年轻靓丽女孩问道:请问黄山路79号怎么走......来到遍布危险的荒岛,看江响如何彻底改造,铸就传奇。
司一传 巴别塔的崩毁 对不起小霞 灵仙江湖 我以气血入道 战婿狂医 佐传 异世界旅人 酋长饶命 神话:开局被女帝上门求婚 再上昆仑 我在晚明替天行道 三界降灾浮沉录 大明:我爹是朱元璋 最是人间第一流 奇魄世界 世说阴阳 恶魔心索 抑郁者的世界 末日千万不要做的事情 宏达驾校怎么约考 衡水个驾校电话 衡阳市中宏驾校教练 恒星学院驾校 宏达驾校怎么约考 宏光驾校考场怎么走 衡阳有几个船山驾校 衡水职大驾校电话 宏光驾校16路站名是啥 衡阳市船山驾校怎么样 红山驾校微信公众号 红安驾校考场开考了吗 宏顺驾校科目一试题 衡水个驾校电话号码 洪雅鑫运驾校报名电话 恒通驾校总校在哪里 衡阳有几个船山驾校 宏光驾校16路站名是啥 宏达驾校科三报考 鸿运驾校科三 衡水个驾校电话 鸿运驾校科三视频 宏达驾校有保过的吗 恒星学院驾校叫什么 衡水个驾校电话号码 宏顺驾校科目一试题 宏光驾校16路站名是啥 宏达驾校有保过的吗 宏达驾校科三报考 宏光驾校16路站名是啥 恒通驾校总校在哪里 衡水个驾校电话 恒通驾校预约科三 鸿运驾校科三 宏光驾校有什么车 恒通驾校总校在哪里 后沙峪 附近驾校哪个好 衡阳有几个船山驾校 宏顺驾校科目一试题 后沙峪 附近驾校哪个好 恒通驾校总校在哪里 衡阳哪个驾校可以学B2 洪雅驾校学费 红安驾校考场开考了吗 恒星学院驾校叫什么 衡水个驾校电话 红山驾校微信公众号 恒通驾校预约科三 洪雅驾校那个好 衡阳市神鹰驾校图片 亚星游戏官网 亚星官网 亚星官网 亚星游戏官网 亚星官网 战后赵国朝廷权力的变化 听风楼,观风云 修仙从继承灵兽铺开始 九 影 世无殇 澳门葡京游戏官网 AG真人 快连下载 澳门葡京官网 欧博游戏官网 宏顺驾校科目一试题 宏光驾校考场怎么走 恒星学院驾校叫什么区别 宏光驾校有什么车 洪雅驾校学费 恒星学院驾校叫什么 洪雅鑫运驾校报名电话 红山驾校微信公众号 鸿运驾校科三视频 红山驾校微信公众号 衡阳市船山驾校怎么样 红星驾校科二考试 恒通驾校预约科三 宏达驾校怎么约考 恒通驾校总校在哪里 衡阳市船山驾校怎么样 恒星学院驾校叫什么 恒通驾校总校在哪里 红山驾校微信公众号 恒星学院驾校 衡水个驾校电话号码 衡阳有几个船山驾校 衡水个驾校电话号码 恒星学院驾校叫什么 衡阳哪个驾校可以学B2 洪雅驾校学费 宏光驾校16路站名是啥 洪雅鑫运驾校报名电话 衡阳市神鹰驾校图片 衡水职大驾校电话