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

<a class="close" href="https://hxis.885588.cn/">&times;</a>
电子邮件营销优缺西安做搭建网站网站设计一般会遇到哪些问题青岛做网站网络安全法案复旦信息安全怎么样高端企业网站信息营销型网站建设公司推荐html写手机网站吗如何在饥饿营销策略煮夫是个大纲废、取名废、简介废,但是唯独文笔和构思不废,喜欢看不一样的故事就请看我的书吧,本来起纲的时候是都市纪实向或者恐怖灵异向的,结果,结果因为很多东西太敏感不能写,一不小心就涉黄涉政涉黑涉毒了,所以就只能改了,以下是我坦白的内容: 这个故事呢,大体是一个叫石羽白的“年轻人”带着自己送上门的老婆孟婆神“孟芝兰”别样的强者归来之路,也没写什么大事儿,就是破个九煞改命局、破个擒天锁地阵、再盗个太古神墓啥的,顺手暴锤一下巡天夜叉王,破解了先天十六卦之谜这种小事都不值得一提了。无敌于世,谁主沉浮,看风华少年,都市纵横。他不甘堕落,在这座城市生根发芽,认识了这个妩媚的女人,一步步走向美好。我穿过太平洋,步过雨林,穿越麦田。在蒸气中我漂浮、我诞生、我死去。陈阳被困在了一个永远无法逃离的循环里,只要过了情人节的15点15分,他就会重新回到15天前。 陈阳发现他无论做什么,都无法打破这个半个月的循环,所有的一切都会重置。 在经历了震惊、刺激、狂喜、焦虑不安、绝望和痛苦等情绪后,陈阳开始各种作妖,决定把这个世界搅得天翻地覆。 陈阳开始学习各种技能和知识,利用它们去达到自己的目的,也完全不用考虑任何后果的恣意妄为,去成为世界的焦点。 尤其是针对那些为富不仁的富豪和权贵,更是让陈阳兴奋的难以自制。 直到有一天,陈阳掀翻了娱乐圈的时候,却发现循环忽然被打破了.....它就在身边 世界一片阴霾 黑暗也迅速降临 在伸手不见五指的情况下 我又能做什么 身上也越来越冷 苏祈因为玩了一次笔仙游戏就被拽进了一个诡异的门后世界…… 这个世界,没有规则,没有对错,除了活着,没有别的选择。 轮回的教室,充满了笑声的楼梯间,尸块堆积的地下仓库。 同学接二连三的惨死却引发了更大的祸端,大门仍然是关闭的,游戏仍然在继续。 只有苏祈知道,自己病了,病的很重。 当他彻底无法控制病症之后,整个诡异世界,都会感受到真正的恐怖……做人总得有梦想。我的梦想就是我的榜1。自推背图出世以后,皇朝不再是一个人的天下。江湖风云变换,但是江湖人都在驱动着时间的齿轮,使得江湖令变得接近永恒。李志德作为唐王的后人,一直希望寻回江湖令,重建大唐盛世,但也对现在国家充满了信心,······游戏俱现,五开玩家李长生,突然获得五个号的修为! 别人满级200,李长生:“我1000级什么鬼?” 别的玩家只能选一个职业,李长生:“你见过八块腹肌的法师吗?”
贵州网站制作哪家好 外贸网站建设 如何做 阿里巴巴网络安全总监 单仁网络营销 电子邮件营销优缺 杭州 网站建设公司排名 深圳整合营销平台 网络营销在酒店营销中的应用浅析[毕业论文] - 毕业设计 公司营销案例 如何做好外贸网络营销 财运不佳的原因分析【www.richdady.cn】 亲子关系的家庭氛围如何营造?【www.richdady.cn】 耳鸣的医学检查【www.richdady.cn】 老公家暴的前世记忆咨询【www.richdady.cn】 冤亲债主干扰的解决方法【www.richdady.cn】 头脑混沌的前世因果咨询【σσЗ8З55О88О√转ihbwel 如何避免生活中的意外【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 婴灵的超度过程咨询【企鹅383550880】√转ihbwel 儿子不读书的环境影响【企鹅383550880】√转ihbwel 无形干扰的环境影响咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 儿子不读书的教育建议【www.richdady.cn】√转ihbwel 发育倒退的原因分析【企鹅383550880】√转ihbwel 升迁障碍的改运方法【微:qq383550880 】√转ihbwel 阴间生活的前世缘分咨询【σσЗ8З55О88О√转ihbwel 公司破产对股东的影响咨询【企鹅383550880】√转ihbwel 前世缘份的咨询技巧咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世老公的前世故事咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 自闭症的心理调适【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世缘份如何影响人际关系?咨询【σσЗ8З55О88О√转ihbwel 性压抑的情感释放【σσЗ8З55О88О√转ihbwel 信息安全 内网ppt,-1 注册网站域名 上海营销部 国家计算机网络与信息安全管理中心广东分中心 购物网站怎么创建 广州淘宝网站建设 杭州 网站建设公司排名 新媒体营销效果 网络营销热点 网络信息安全风险评估 网络营销公司微信号 小白网络营销 营销工具作用企业网络信息安全培训 西安营销推广 模板网站与 定制网站的 对比 重庆网站优化公司 信息安全报告 临沂网站 有关网络安全的文章 哈工大网络与信息安全 北京信息安全协会 网站域名域名 点墨网站 网络和信息安全专业 阿里巴巴网络安全总监 网络与信息安全会议,-1 网站规划 网站型营销 定制os 信息安全 html写手机网站吗 互联网产品营销计划书 营销工具作用企业网络信息安全培训 中国信息安全测评中心官网 青岛建网站公司 国外网络安全社区 对营销要求 信息安全专家人物 信息安全泄漏 信息安全分享,-1 营销型网站要多少钱 铜仁网站建设 电子邮件营销优缺 网络与信息安全会议,-1 小白网络营销 国家信息安全部门 公共无线网络安全 网银 网站主色调简介怎么说网络安全监管部门电话 社会媒体营销的方法 怎样创建旅游网站 西安做搭建网站 怎么理解一对一营销 西安营销推广 湖南营销型网站建设 上海营销部 福州外网站建设 铜仁网站建设 昆明网站开发多少钱 怎样创建旅游网站 高唐网站建设服务商 网络营销的优势 信息安全技术 信息系统安全等级保护测评要求,-1 html写手机网站吗 北京信息安全协会 徐州网站制作 营销型网站制作 长沙网站维护 济源建网站网站建设收费 临沂网站 西安营销推广 综合营销软件 综合营销软件 网络安全法 解读 陕西信息安全认证中心 营销型网站制作 新媒体营销效果 广州淘宝网站建设 买已备案域名是不是用了别人的信息注册影响自己网站吗 企业网络与信息安全管理组织架构 信息安全 内网ppt,-1 信息安全意识 多选题 东莞政府信息安全 定制网站与模板建站维护西安做网站设计公司 西安做搭建网站 外贸网站建设 如何做 网站建设服务商 线条类网站 天津网站设计 北京信息安全协会 江门建网站 哈工大网络与信息安全 信息安全技术 信息系统保护轮廓和信息系统安全目标编制指南 如何建设网站 网络安全团队名称大全 综合营销软件 北邮信息安全就业 浙江省网络安全周 定制网站与模板建站维护西安做网站设计公司 建个普通网站 临沂网站 网络营销本科学校 网络营销充电 网络和信息安全专业 紫色的网站 信息安全意识 多选题 网络营销在酒店营销中的应用浅析[毕业论文] - 毕业设计 网站建设品牌推荐 深圳整合营销平台 国家计算机网络与信息安全管理办公室 国外网络安全社区 北大信息安全在哪个学院 营销工具作用企业网络信息安全培训 陕西信息安全认证中心 深圳高端网站设计 案例营销 外贸网站建设 如何做 青岛做网站 综合营销软件 购物网站怎么创建 贵州网站制作哪家好 汕头网络营销 国家信息安全小组成员 注册网站域名 长春微信做网站 信息安全系统的要求 营销工具作用企业网络信息安全培训 浙江省网络安全周 长沙网站维护 电子邮件营销优缺 国家信息安全部大数据上市公司 张斌互联网营销策划 信息安全系统的要求 网络安全团队名称大全 贵州网站制作哪家好 信息安全意识 多选题 国际信息安全等级划分