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://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.cn/">Prev</a></li>
    <li class="active">
      <a href="http://bsrdo.vxjx.vuofbtz.cn/">1</a>
    </li>
    <li><a href="http://bsrdo.vxjx.vuofbtz.cn/">2</a></li>
    <li><a href="http://bsrdo.vxjx.vuofbtz.cn/">3</a></li>
    <li><a href="http://bsrdo.vxjx.vuofbtz.cn/">4</a></li>
    <li><a href="http://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.cn/">Previous</a>
  </li>
  <li>
    <a href="http://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.cn/">&larr; Older</a>
  </li>
  <li class="next">
    <a href="http://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.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://bsrdo.vxjx.vuofbtz.cn/" for click events if you rather use an anchor.

<a class="close" href="http://bsrdo.vxjx.vuofbtz.cn/">&times;</a>
徐水阳光ktv电话鱼洞客运站电话号码小猪短租官网客服电话开封宋城路轻轨站电话求广安德胜宾馆电话徐水阳光ktv电话增城莲园快餐电话小猪短租官网客服电话绿春人民医院的电话号码总参小西天大院管委会电话西安黄河长乐门诊电话徐水阳光ktv电话齐齐哈尔万达前台电话号码西安黄河长乐门诊电话小猪短租官网客服电话?B?T华信航空电话广元利州酒店电话求广安德胜宾馆电话求广安德胜宾馆电话玉溪山水酒店电话号码中国驻马赛总领馆电话包头到沈阳的大巴电话绿春人民医院的电话号码东营胶东海鲜鱼馆电话神农架宾馆前台电话新渡凤凰城电话号码开封宋城路轻轨站电话泰安交警温泉路电话玉溪山水酒店电话号码秦皇岛君御酒店招聘电话救人一命胜造七级浮屠,美女施主,你我有缘啊...乾坤八卦,阴阳五行,魑魅魍魉,死尸僵尸,一切尽在三界当中。综武世界 叶青在三不管地带开黑店。 小昭:老板,你心都是黑的,我才不要给你打工一百年! 师妃暄:黑心老板,休要坏我道心! 欧阳锋:年轻人,我劝你耗子尾汁,莫要将路走窄了。 赵敏:老板,你说那腹黑成功学,教教我,好刺激哦,我好喜欢。 张三丰:年轻人不讲武德,不过,你要不要跟我学修仙? 郭靖:叶大哥,以后我就跟你混了,你说让我干啥就干啥! ...... 叶青笑的五彩斑斓黑:诸位,本店明码标价,童叟无欺。半生蹉跎无人问,十年重生天下惊。 这是小人物的逆袭,也是辉煌的起始,从虫子到巨龙,我们皆是神的玩物,我们亦是可屠神之人。 这是英雄的一生谁能左拥天下,右抱爱情,笑看风云数千载?太阳神?佛祖?朱雀?光神?青龙?水神?玄武?白虎?谁主宰风云数千载!(带修为归来,无敌+单女主+奶爸+萌娃+战斗+微搞笑+甜蜜。) 他,曾是一代雇佣兵王,后退役成为顶级杀手组织“暗暮”王牌杀手! 却不想,竟遭人算计,背叛;一番血战中,寡不敌众的他被子弹贯穿了胸膛,坠落悬崖…… 却不想,意外开启了进入天界的入口,并在机遇下获得了一部功法…… 之后,他游走于六界之内,纵横于多元宇宙之间;凌驾于天地之上,视众生灵如草芥。 纵然屠尽六界神魔,天道也奈何他不得…… 五百年后,他再度归来,却不想,此刻的他,竟有了……两个可爱的女儿?! 错了,重来…… 那纵横于多元宇宙,凌驾于天地之上的恐怖存在,摇身变成了一名……柔情奶爸! “敢欺负我女儿,定让你消失于六界之内!” “你……你到底是谁?!” “我吗?有人叫我武龙帝尊,有人叫我武龙天尊,还有人叫我混沌天帝。” “但我现在,只是一名安静的女儿奴。”低等灵根不能修炼?秦墨嗖的一声抽出自己的大刀,轻轻抵在了来人的脖颈之上,温声问道:“这话是你说的?难道是魔族奸细?”啪嗒!啪嗒!两颗圆润的汗珠掉在了地上。 一缕长发飘散到秦墨肩上,只听娇柔的女声响起:“世界杯华国足球决战阿巴国足球,不去瞧瞧?” 秦墨泪目,立刻携佳人前往,那人刚想说什么,却再次噤若寒蝉,原来一只不大的胖手正搭在颈边。 “别着急走啊,我们也可以一起出去转转的。”面前阴沉的声音传来,那人想要抬头却是不敢了。 “你说华国能赢么?”女子问道 “当然能赢。我赌三辈子的所有经验!”秦墨大笑。 有人问:据说穿越一次,这是潮流。那穿越两次呢? 秦墨大怒:是老子倒霉! 剑足够利,拳头足够大,才是真正的道理…… 方酒本是清苦知足,乐活安稳的一名少年,没有雄心野心,没有凌云之志。然而江湖上哪有什么真正的安稳。 风云难测,人心更是诡变。江湖险恶,三擎百教林立,有人径来直去,有人心术权谋。赤子少年如何在纷争中挣扎,是泯然众人,还是一步登天。 诸君,且观风云。自家破,遇恩师、交良友,人生多不易,卧薪尝胆走江湖。人生多艰难,不过终是热血少年,起于乞丐,经艰险、遭磨难,玉汝于成,本就是英雄少年。生逢乱世,一个人人唾弃的乞丐,如今白发披肩,一袭血红长袍,手持森白骨剑,后背的长枪泛着令人望而生畏的红芒。惨白的月色下,纵身一跃便消失在了茫茫的夜色之中,留下的只有滔天的杀意。
赋闲贵人 我成为西泽尔了 魔灵世界:这个猎魔人好可怕! 镇魔师 末日尸行 我在王者捡技能碎片 铁血狂徒之周姐是我妻 白日暗流 自由天空城 帝都寻仙记 王之起点 北境之地 魂穿之竟然是个废柴 刀剑天武 重生之我是鬼神 我想毕业 命之陨 神魔道:末世劫年 钟表外的平凡人生 刹尘传 新渡凤凰城电话号码 ?B?T华信航空电话 广州广大厦地址电话号码是多少 求广安德胜宾馆电话 鱼洞客运站电话号码 泰安交警温泉路电话 广州广大厦地址电话号码是多少 水底山温泉电话 商城崇福酒店电话 齐齐哈尔万达前台电话号码 南京到高沟客运电话 南京到高沟客运电话 东营胶东海鲜鱼馆电话 ?B?T华信航空电话 徐水阳光ktv电话 神农架宾馆前台电话 海甸岛知和行书局电话 新渡凤凰城电话号码 仙游煌家水疗电话多少钱 小猪短租官网客服电话 西宁南滩派出所电话是多少钱 小猪短租官网客服电话 仙游煌家水疗电话多少钱 包头到沈阳的大巴电话 总参小西天大院管委会电话 四川航空投诉电话号码是多少 新渡凤凰城电话号码 仙游煌家水疗电话多少钱 仙游煌家水疗电话多少钱 商城崇福酒店电话 求广安德胜宾馆电话 西宁南滩派出所电话是多少钱 开封宋城路轻轨站电话 徐水阳光ktv电话 东营胶东海鲜鱼馆电话 神农架宾馆前台电话 开封宋城路轻轨站电话 广州广大厦地址电话号码是多少 东营胶东海鲜鱼馆电话 海都大酒店电话 神农架宾馆前台电话 水底山温泉电话 玉溪山水酒店电话号码 海甸岛知和行书局电话 西安黄河长乐门诊电话 西宁南滩派出所电话是多少钱 南京到高沟客运电话 神农架宾馆前台电话 四川航空投诉电话号码是多少 广元利州酒店电话 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 世界晋升:修罗枪神 奥传之绝世武神 玄荒武帝 极桓九 我的老头儿老太儿 百度 百度 百度 百度 百度 包头到沈阳的大巴电话 神农架宾馆前台电话 南京到高沟客运电话 包头到沈阳的大巴电话 ?B?T华信航空电话 广州广大厦地址电话号码是多少 ?B?T华信航空电话 西安黄河长乐门诊电话 水底山温泉电话 玉溪山水酒店电话号码 新渡凤凰城电话号码 徐水阳光ktv电话 增城莲园快餐电话 总参小西天大院管委会电话 增城莲园快餐电话 新渡凤凰城电话号码 海甸岛知和行书局电话 广元利州酒店电话 包头到沈阳的大巴电话 广州广大厦地址电话号码是多少 绿春人民医院的电话号码 四川航空投诉电话号码是多少 中国驻马赛总领馆电话 海甸岛知和行书局电话 鱼洞客运站电话号码 ?B?T华信航空电话 水底山温泉电话 总参小西天大院管委会电话 商城崇福酒店电话 仙游煌家水疗电话多少钱 亚星官网 亚星官网 万利官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 欧博官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网 亚星官网