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

<a class="close" href="https://cb9.voxe.cn/">&times;</a>
宣传营销科的重要性网站没备案edm营销课程网际天娇信息安全技术服务关于检查网络安全的app旅游营销方案咨询手机网站建设平台太原网络营销建免费网站动态网站一座危城,一条老街,一个念想,一个人,一群人,守一城。 陈枫重生异世,在最弱小的时候得到了一群最善良的人的帮助,为了一个念想守住一个城。守西北,入中京,踏塞北,这一世,希望可以活成自己想要的模样。夜晚,幽静的小路上一对男女正在聊天,旁边的路灯在为他们的行程照明。 “听说世上真的有人会蛊术啊。” “是的,听说来的都不会错的。” “那你会吗。” “你就是想试试呗?” “我就是随便问问。比如那忠情蛊啊、傀儡蛊啊、控尸蛊啊之类的,还有什么吸血蛊、杀人蛊之类的。” “嗯,有的,这些都有的,除了这些之外呢,还有噬人蛊、鬼头蛊、人身蛊、绝命蛊等等。” “哈哈哈哈,你可真像个说书的。” “怎么说。” “编的一本正经。” “那感情你刚刚是在诈我?” “对的,世界上怎么可能会有这种奇怪的东西。不过你居然顺着编下去,我表示很满意。” “哈哈哈哈,让公主开心这是骑士的准则之一。” “好的,我的骑士,请将我安全护送到家。” “遵命,我的公主。” 可你不知道的是,谎言的谎言,有的时候将会化为真实。 (因为是奇幻小说,书本采用的是第一人称。)世纪交际,魑魅降世,铁蹄摧骨,爪牙喋血。 为了抵抗这些嗜杀的恶魔,人类锻造了自己的铠甲,名之假面骑士,组建同盟,御敌守土。 这个汇集精锐,背负人类全部希望的组织,便是骑士联盟。 20年的浴血奋战,不计其数的先烈以血肉之躯,筑起钢铁城墙,将那些怪物阻挡在战区的铁壁之外。终于,敌寇似是偃旗息鼓,世间仿佛重获平和。 20年后,一个失忆的青年,加入了这个组织。他不知道自己是谁,却能够与一条雪藏十余年之久的骑士系统意外匹配。 他也不知道,自己的身上埋藏了多少秘密,经历了几多坎坷,又背负着多少人的期许,暗含着何其残忍的阴谋。 战斗旷日持久,秘密逐一揭示。 彼时,谁都不曾设想,暗流涌动,会在有朝一日化为汹涌浪潮,将这粉饰的太平,尽数吞没。 联盟之下,或许远没有世人所看到的这般祥和。普通大学毕业生,没人脉,没势力,通过自己的努力,成为国内工控行业的先行者。浩瀚混沌之中存在五大混沌宝物,每个混沌宝物都带有一部混沌功法,能够修炼混沌功法的都是有大气运的人。洛豪,本是一个渺小的修士,偶然获得混沌书的青睐,从此踏上了漫长的修道之路,为了追求最强一道而努力磨练自己。一个爱回忆过去的人一名初中生,在目睹了一场惨案后,突然发现自己居然可以看见常人看不见的东西。 林田获得随身空间种田,春花秋月,悠然南山,坐吃山不空。 他只想过好自己的小日子,实力却不允许他低调。 什么是钱?什么是美女?呵。 当灵果风靡全世界,人人求之不得之时,灵果制造商躺在摇椅上悠然撸猫,岁月静好。 然而,当危机降临到他在乎的人身上,要战,便战! 由于来自灭世级强者:作者君的无上伟力,文科宅男燕藏锋穿越到了一个多国争霸的年代。 他只想成为成为一个逍遥的贵族子弟,然而他的老父亲燕王喜似乎总是对他图谋不轨。 第一次。 “逆子,想不想当燕王?”燕王喜笑眯眯的问。 “傻子才当燕王呢!”燕藏锋对此不屑一顾:“再说了,大哥还活得好好的呢!” “好!”燕王喜不再说话。 第二次。 “逆子,你大哥没了,你该上位了!”燕王喜说道。 “不去。”燕藏锋十分潇洒:“二哥会是一个好燕王的。” “你自己说的。”燕王喜还是没强求他。 第三次。 燕王喜躺在病榻上,说道:“逆子,你二哥也没了,你总该上位了吧。” 看着满面红光的燕王喜,燕藏锋满脸无奈。 “你要是不装病诱惑他,他能造反?” 这是一个希望儿子继承王位的老父亲,和一个只想当咸鱼的儿子相爱相杀的故事。恢复记忆的他发现世人皆想要他命,幸得先祖玉皇大帝传授改良功法和师兄秦始皇嬴政馈赠,然而他发现这倒霉功法突破方式太过奇葩,有人修仙靠灵气,有人修仙靠仙气,他修仙居然靠挨揍。在蓝星他靠挨揍不断突破,报家仇、平内乱、一统天下,荡平蚩尤余孽,破道成仙。 他以这倒霉功法重踏仙途,机缘巧合之下发现了这倒霉功法的BUG,为求突破到处抓壮丁,只为用他们的攻击换取突破机缘,开启挂机突破模式。 随着等级越来越高,寻常壮丁已然不能满足他的需求,他把魔爪伸向仙魔妖域,闹得仙魔妖域人心惶惶,仙帝也退避三舍。 “妖帝!张青那厮又来了!” “什么?!那家伙又来抓壮丁了?!快开启妖族大阵!” 防道仙师是他自己起的仙号,但仙魔妖域都称他万恶奴隶主! 他的仙途格言是:修为再高也怕菜刀?你把菜刀放下!用仙器!我需要一顿酣畅淋漓的胖揍!
最优秀的佛山网站建设 清华大学 网络安全 网络安全的监管机构 互动营销失败 广州市网站网页制作公司 乐清企业网站制作 河北网站建设推广 网络整合营销品牌策划 无锡微信营销外包 营销切入点 如何解决事业不顺的问题?咨询【www.richdady.cn】 阴间生活的前世解析咨询【www.richdady.cn】 升迁障碍的职场晋升技巧有哪些?【www.richdady.cn】 与公婆前世咨询【www.richdady.cn】 财运不佳的财富增长咨询【www.richdady.cn】 失业的自我提升威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 如何发现前世缘份威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世缘份的缘分再续【σσЗ8З55О88О√转ihbwel 大龄剩女的婚恋故事咨询【企鹅383550880】√转ihbwel 失业的应对方法【σσЗ8З55О88О√转ihbwel 维护良好家庭关系的秘诀有哪些?【σσЗ8З55О88О√转ihbwel 婴灵的真实案例有哪些?咨询【www.richdady.cn】√转ihbwel 事业不顺的解决方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 孩子压力大的解决方法【微:qq383550880 】√转ihbwel 无形干扰的案例分享【微:qq383550880 】√转ihbwel 无形干扰的解决方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 什么原因意外的前世记忆咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 婚姻生活不顺的沟通技巧【www.richdady.cn】√转ihbwel 特殊学校的前世记忆咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 与男友前世的记忆解析咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 全面的哈尔滨网站建设 昆明优化营销 湘潭网站建设 2016年网络安全大事件 全面的网站建设 社会工程学 网络安全 《网络安全》2017 宣传营销科的重要性 最优秀的佛山网站建设 广州营销推广报价 网络安全画像 顺德网站建设市场 成都的信息安全公司 网络安全 资质 国家网络安全中心 地址 网络安全手机 腾讯营销活动案例 网络安全的监管机构 成都网站建设哪家好 网站的市场营销方案 南阳河南网站建设 国家网络安全中心 地址 企业网络安全方案集团公司广域网组建 网络安全检查工具 浙江省 网络安全 公司网站建设 谈谈对网络安全的认识 网站没备案 关于检查网络安全的app 太原网络营销 互联网营销平台选择 传统市场的营销活动方案 互动营销失败 网络安全实验室 设备有哪些 营销切入点 全面的网站建设 简洁网站 优秀网站设计欣赏 网站提供商 中国广东手机网站建设 网络营销环境包括哪些内容 亚马逊网站营销策略 杭州网站建设公司联系方式 公众号营销套路 乐清企业网站制作 国家信息安全漏洞共享 电商网站前台模块 南阳河南网站建设 网络安全专业是什么 开商城网站 广西南宁市网站制作公司 电商网站前台模块 购物类网站建设方案 建个什么网站好 网络营销 公众号 购物类网站建设方案 计算机网络与信息安全 简洁网站 信息安全咨询服务方案 互动营销失败 昆明做企业网站多少钱 营销 软件 互联网营销平台选择 网络安全技术架构 网络安全手机 网站不足 《网络安全》2017 推一把网络营销怎么样 灰色网站 国家对网络安全的政策如何做论坛营销 典型软文营销案例 郑州建网站 营销学堂 咨询手机网站建设平台 信息安全攻防技术公司 无锡微信营销外包 上海市网络与信息安全协调小组 seo网络营销师 优帮云 如何把网站做好 台州网站设计 解放路 成都网站建设哪家好 网络安全关乎个人安全 网站采用哪种开发语言 如何把网站做好 龙口做网站 网络安全画像 网络营销bbs 超低价的郑州网站建设 网站的市场营销方案 灰色网站 设计公司网站 计算机网络与信息安全 国家网络与信息安全信息通报中心技术支持单位 网络营销工具分为沟通类 特色的佛山网站建设 成都的信息安全公司 重庆知名网络营销公司 大连网络安全公司 河北网站建设推广 网络安全技术竞赛南通网站优化 湘潭网站建设 网络安全的基本目标包括 银川全网营销 南宁网站建设 邮件营销是无效的 郑州高端网站 网络安全国际会议 关于检查网络安全的app 哪有那样的网站 xctf网络安全 网络安全检查工具 信息安全技术 信息系统等级保护安全设计技术要求,-1 贺州网站建设 线上网站制作 超低价的郑州网站建设 五级网络安全是 旅游网站案例 网络安全手机 星巴克场景营销案例 网站建设论坛 网络安全的监管机构 网站提供商 网络安全监测手段 网站的市场营销方案 网络安全关乎个人安全 太原网络营销 国家网络安全中心 地址 昆明做企业网站多少钱 宜昌做网站 网络安全检查工具 建个什么网站好 网络安全的现状与威胁分别有哪些 公司网站建设 全面的哈尔滨网站建设 免费网络营销课程