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="https://x5j.550022.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="https://x5j.550022.cn/">Prev</a></li>
    <li class="active">
      <a href="https://x5j.550022.cn/">1</a>
    </li>
    <li><a href="https://x5j.550022.cn/">2</a></li>
    <li><a href="https://x5j.550022.cn/">3</a></li>
    <li><a href="https://x5j.550022.cn/">4</a></li>
    <li><a href="https://x5j.550022.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="https://x5j.550022.cn/">Previous</a>
  </li>
  <li>
    <a href="https://x5j.550022.cn/">Next</a>
  </li>
</ul>

Aligned links

Alternatively, you can align each link to the sides:

<ul class="pager">
  <li class="previous">
    <a href="https://x5j.550022.cn/">&larr; Older</a>
  </li>
  <li class="next">
    <a href="https://x5j.550022.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="https://x5j.550022.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="https://x5j.550022.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="https://x5j.550022.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="https://x5j.550022.cn/" for click events if you rather use an anchor.

<a class="close" href="https://x5j.550022.cn/">&times;</a>
广西网络信息安全峰会分析网络营销环境大良网站设计价格国家网络与信息安全信息通报中心郑州手机网站建设内容营销的主要内容北方明珠网站建设网络安全主管部门检查网络安全培训方案网络安全应急处置流程图叶帆,原本只是现实生活中的一个宅男,结果在一次触电事件中他被传送到了名为洪荒之界的地方,他会在这里反复出什么风雨呢?作者:秋七幸 作品:立校高中 简介:许白和秦严在同一所高中而且心俩还是同桌(兼邻居)。后来他俩考上了同-所学校(清华),许白选择了土木工程系,而秦严则选了济经系。毕业后许白和秦严俩人过上了没差没涩的生活……邵帅意外穿越,原本准备靠着律所合伙人身份简单过活,但随着系统的开启,一位位影视剧中的女主,却让他原本平淡的生活变得多姿多彩。从小便受尽生活的屈辱,而为了活的更好只能隐忍努力,为了活的有尊严又不得不奋起反抗,然而在命运的安排之下,竟然踏上了一条更为艰险的修行之路,这便是狄峰卑微而又惊奇的人生。修行不为富贵,不为长生,更不为称霸天下,只为活的有尊严、活的无拘无束、活的无怨无悔!前世,寂灭剑神陈夜一人对抗着吞天魔龙,他看着大陆被摧毁,他悲伤无比,他怒吼道:“寂灭归元,同归于尽吧!老怪物!”说罢,他燃尽生命发出宇宙中最强一剑,这时,一颗石头发出了强烈的光芒,将陈夜轮回道3000年前。他一路提升实力,能否打败吞天魔龙?年代+宠妻+渣男悔过+暴富+奶爸+单女主 “周泽,你有遗憾吗?” “有” 美丽妻子死在他面前的场景,无数次出现在周泽梦中。 每次,他都仿佛被千刀万剐一样,纵是如此,也无法偿还他曾经犯下的罪。 带着巨大的痛苦和内疚,重生93年悲剧还未发生的那天。看着妻子的倩影,周泽笑的泪流满面。五百年宇宙爆发了一股庞大的特殊能量,将世界各处不同一地点,不同时间的人聚集到了一处空间,在这里它被人们称之为极度领域,有一个名卫的组织隶属于七星主神的麾下,守卫极度领域的秩序。 直到五百年后的今天,宋萧的出现彻底改变了该空间的运行轨迹。平行世界的夏国,娱乐产业空前繁荣。 女团、综艺,脱口秀、西洋乐器,几乎掠夺了观众的所有目光。 明星宗洋媚外,以会唱外文歌沾沾自喜,以能和外国明星合作为荣。 蓝湛,就重生到了这样一个乌烟瘴气的世界。 因为无知,所以抵触。这世界,令人心寒。 没人经历过千年琵琶万年筝,一把二胡拉一生的坚持; 没人感受过戏曲那能将人心揉碎又缝合的独特腔调; 没人了解所谓的脱口秀,不过是相声的一种表演方式而已。 一曲二泉映月,一场霸王别姬。 蓝湛要让人明白,不论是艺术,还是取悦观众,国风国粹都是祖师爷!建筑集团老总许勇,穿回到1986怂人狗娃的身上。 前后两世记忆一融合,他瞬间变得强大。 拳打村霸,棒扫混混英雄救村花。 夜总会遇伯乐,他的人生从此开挂。 组建乡村建筑队、办醋厂、种果树。 直到集团公司上市。 用超前三十多年的人生经验赚这个时代的钱,岂不是很容易? 看《超级农民工》为自己补办一场错过的人生盛宴。救人一命胜造七级浮屠,美女施主,你我有缘啊...
青岛网站建设找 口碑营销 失败 案例 分析网络营销环境 电商网站开发 美国网络信息安全 6.1号网络安全法 内容营销的主要内容 武汉工业网站制作 工信部 网络安全 处 北京市网站公司 感情纠纷的沟通技巧咨询【www.richdady.cn】 去世的父亲的前世解析【www.richdady.cn】 与女友前世的因果关系咨询【www.richdady.cn】 亲子关系的咨询技巧【www.richdady.cn】 脑部不清晰的生活习惯【www.richdady.cn】 脑部不清晰的解决方法咨询【www.richdady.cn】√转ihbwel 迟缓儿的前世因果【σσЗ8З55О88О√转ihbwel 前世今生的故事解析【微:qq383550880 】√转ihbwel 纠纷的法律援助咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 冤亲债主的化解方法【微:qq383550880 】√转ihbwel 大龄剩女的咨询技巧【微:qq383550880 】√转ihbwel 意外的原因分析咨询【微:qq383550880 】√转ihbwel 长期精神不振的原因【σσЗ8З55О88О√转ihbwel 财运不佳的原因有哪些?咨询【www.richdady.cn】√转ihbwel 解梦的前世因果咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 解梦的方法与技巧咨询【www.richdady.cn】√转ihbwel 感情纠纷的沟通技巧咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 孩子不爱读书的家庭教育方法有哪些?【微:qq383550880 】√转ihbwel 前世今生的缘分解读【微:qq383550880 】√转ihbwel 家宅磁场的常见问题咨询【微:qq383550880 】√转ihbwel 淄博网站优化外贸网站的建设 信息安全工程研究中心,-1 制作网站的公司 清华网络安全培训班军用信息安全产品 网站设计小技巧 网络安全实训总结 网络营销o2o 榆林网站建设 信息安全电子书 闵行网站建设 郑州个人做网站 吉安网站 美国网络信息安全 国家网络安全小组 营销型企业 信息安全起源 企业信息安全部 高端网站定制 西安全网营销 大网站如何优化 营销模式包含哪些内容 口碑营销 失败 案例 信息安全渗透测试服务,-1 中国的信息安全 营销 基于大数据的网络安全 网站推广的好处 郑州网络营销课程培训机构 常州制作网站价格 病毒营销的传播渠道 重庆b2c网站制作 东莞网站制作公司 深圳手机网站建设多少钱 吉安网站 3g手机网站 海淀重庆网站建设 信息安全 效益 烟台软件优化网站 郑州个人做网站 信息安全电子书 维护网络安全我会做到工信部网络安全考试 南通动态网站建设 很有风格的网站有哪些 建网站怎么上线 网络营销包含 个人网站建设 网络安全与信息间是 哪些因素营销网站权重 信息安全会议2015 安询信息安全 网络安全主管部门检查 成都公司建网站 搜索引擎营销的发展历史 国家网络与信息安全信息通报中心 网络安全专家要求 互联网营销 行业简介 企业网站的一、二级栏目名称 网络安全专家采访 组建网站 pc网站增加手机站 哪些因素营销网站权重 中小企业网站建设价位 广西网络信息安全峰会 企业网络营销存在问题 西安全网营销 信息安全cc 新营销理念 互联网信息安全平台 南通动态网站建设 西安全网营销 营销型网页 电商网站开发 大网站如何优化 信息安全热点 滴滴互联网营销案例 网络安全专家要求 营销案例报告饥饿营销 很有风格的网站有哪些 论坛营销的技巧 深圳网站建设迅美 3g手机网站 软营销案例网络信息安全管理局 青岛网站建设找 网络和信息安全领导小组 制作公司网站价格 四视图网站 淄博网站优化外贸网站的建设 asp网站运行时浏览器兼容模式为什么显示不了商品图片?极速模式可以 建网站怎么上线 做网站建设 深圳网站建设迅美 网络营销o2o 学校 信息安全 武汉工业网站制作 营销的好处 情感式营销步骤 很有风格的网站有哪些 网络安全新闻信息 网站搭建价格 网络安全实训总结 静安微信手机网站制作 很有风格的网站有哪些 企业信息安全部 深圳手机网站建设多少钱 重庆b2c网站制作 营销号英文 网络营销方法分为 玉微营销 上海网站推广 广东手机网站建设报价 网络营销环境特性 外链发原创文章那这原创文章是属于我网站原创还是外链网站原创? 网站的排名和什么因素有关系 信息安全的主要威胁有哪些? 建设网站优点 互联网营销策略 总经理 营销模式包含哪些内容 组建网站 北京营销型网站通信网络安全专业委员会 厦门网站建设企业 烟台软件优化网站 传统企业网络营销意义 asp网站运行时浏览器兼容模式为什么显示不了商品图片?极速模式可以 信息安全竞赛flag 信息安全关乎国家安全 河南省网络安全办公室 上海企业网站建设 大连公共信息网络安全监察局 6.1号网络安全法 哈尔滨做网站 布吉网站建设 廊坊设计网站公司 营销号英文 滴滴互联网营销案例 婚庆网络营销方案