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

<a class="close" href="https://jhx.aiqingcao.cn/">&times;</a>
专业的网络营销首选公司上海网站制作顾问怎么攻击网站无锡微信营销外包成都搜索引擎营销公司网站定制与模板开发网络安全热点事件网络安全实时监控淘宝双十一的营销策略分析武汉便宜做网站本出生自皇族的唐天皇,却有家难回,名有着强大的血脉,却要隐藏于世……本文主人公文春水,是个高考落榜的农村青年。本文主要写了文春水坎坷的人生,和他缠绵悱恻的罗曼史。他多才多艺,文静儒雅,一表人才。他为人正直善良,但命运坎坷,爱情多磨难……蓝星历2099年,全球最神奇、最火爆的游戏《超元宇宙》投入运营的第四十九个年头。这一年,游戏中一个命名“圣域”的新地图突然开放,再次震惊了全世界! 故事,由此而开始……“三更堂?阎王让你三更死,谁敢留你到五更的三更堂?” 胖哥,先为不可胜呀,算无遗策呀,智珠在握呀。被打的吐血还在这装? 兄弟二人,美女撑腰,携酒上吟亭,满目江山列画屏。云之始,始为开始,终以极,万物有始。穿越到大丰界的秦风,本以为能够成仙问道,潇洒过一生。但没想到自己身中火毒,只剩两百年的寿命,算了,该吃吃,该喝喝,按部就班就好,道——不可强求。一群人,围绕在战争中研究战争,模拟战争,执行战争,思考战争。他们为了争夺权利,不惜牺牲掉手中的一切,以获得权利;他们不管为此他们要付出的代价有多么惨烈,只要得到手中的权利;他们为了权利可以为所欲为,亦可以无法无天;他们用尽手中的一切,想方设法以达到无人可以匹敌的地步,战胜对手,登上权利的宝座...... 普通版本简介:陆有恒在陪女朋友逛街加班途中,撞到一根诡异的电线杆上重生了。重回十年前大一入学之际,平平无奇(俊雅清逸)的陆有恒只想通过前世记忆经验,合理安逸轻松地做个普通人。 装逼版本简介:数学分析习题中神秘遁去的“三”,开启了陆有恒的玄妙装逼之路,“鸿蒙剖破玄黄景,又在人间治五行。度得轩辕升白昼,函关施法道常明”的太上道祖,与陆有恒究竟有何关联? 两炎黄子孙。 网吧猝死。 魂穿神狼。 身负系统。 一者升级系统。 一者万能系统。 原是铁哥们。 今成双父子。 一为帝。 一为帝他爹。 帝坑爹变强。 爹纳妃三千无敌。 二人相坑相杀。 面对强敌。 哪怕万级大佬。 莫慌。 有爹在。 都是阿猫阿狗。 本书有些无厘头,偏搞笑。 开车~ 你懂的。 还不懂? 给你个表情自己体会。 ヽ(爱′?‘爱)ノ 且看现世男童如何修成绝意尊者。 论修士,究竟是世界错误的产物,还是历史发展的必然。 对错化为真假——萧迷 因果化为顺逆——包浩 真假化为因果——林智者 顺逆化为对错——林智 融四道本源为一,化为——友情的羁绊,善恶本源。
搜索引擎的营销流程 体系内营销 上海做网站的公 聚美营销策略 英文版 公安部网络安全监察 龙岗网站建设 信科网络 镇江网站seo 中国信息安全杂志社 信息安全宣传作品,-1 网络安全实时监控 外灵干扰的案例分享【www.richdady.cn】 改善亲子关系的技巧咨询【www.richdady.cn】 前世今生查询服务咨询【www.richdady.cn】 外灵干扰的前世因果咨询【www.richdady.cn】 家庭关系的心理调适【www.richdady.cn】 前世今生的故事与轮回咨询【www.richdady.cn】√转ihbwel 去世的父亲的前世因果咨询【微:qq383550880 】√转ihbwel 儿子抑郁症的康复训练【www.richdady.cn】√转ihbwel 什么原因意外的前世解析咨询【σσЗ8З55О88О√转ihbwel 前世老婆的前世案例【www.richdady.cn】√转ihbwel 孩子厌学的心理调适【www.richdady.cn】√转ihbwel 前世缘份如何影响人际关系?咨询【www.richdady.cn】√转ihbwel 内心恐惧胆怯的解决方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 财运不佳的改运技巧【微:qq383550880 】√转ihbwel 婴灵的超度仪式【微:qq383550880 】√转ihbwel 婴灵的超度方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 为什么过世的前世记忆【企鹅383550880】√转ihbwel 前世老婆的识别方法【企鹅383550880】√转ihbwel 孩子压力大的前世记忆咨询【σσЗ8З55О88О√转ihbwel 前世缘份的前世解析咨询【www.richdady.cn】√转ihbwel 信息安全工作总体方针和安全策略,-1 网络营销有哪些任务网站宝建站 网络推广营销公司 中国信息安全杂志社 网络营销的发展的原因 学习网站建设 网络安全认证机制 建立网站的方案 获信息安全服务资质二级 网络安全认证机制 网络安全法 防病毒 网站定制与模板开发 软文营销策划书 网络安全产品谁的好 网站被收录 龙岗网站建设 信科网络 信息安全工作总体方针和安全策略,-1 网络营销有哪些任务网站宝建站 网络推广营销公司 中国信息安全杂志社 网络营销的发展的原因 学习网站建设 网络安全认证机制 建立网站的方案 获信息安全服务资质二级 网络安全认证机制 网络安全法 防病毒 网站定制与模板开发 软文营销策划书 聚美优品服务营销策略 响应式网站建设咨询 网络安全扫描 标准 4r营销书 网站被收录 郑州网站建设的公司 网络安全=信息安全 网站营销是做什么的 成都的国家信息安全所 响应式网站建设市场 国家网络安全局副局长 2015年网络安全活动 微商常见的营销话术南通wap网站建设 上海网站制作顾问 传统零售营销的特点是什么 设计网站的软件 语言营销 镇江网站seo 网络安全保卫 唯品会营销方案案例 中山精品网站建设方案 国家制定并不断完善网络安全战略全面评估 特仑苏营销 网络安全会议 邀请函 国外素材网站 支付营销 做生意的网站 信息安全宣传作品,-1 设计网站的软件 天融信网络安全学院 网络营销课程收获 免费申请做网站平台 英文网站推广 网络推广营销公司 网站制作北京 信息安全管理的基本任务 响应式网站建设市场 vpn网络安全技术案例 建立网站的方案 it网络安全员 网络安全实时监控 惠州网站建设 响应式网站建设咨询 淘宝营销部 知名的网站设计公司 网站排版策划 江苏网站建设网络公司 网络安全绿盟科技 信息安全与管理审计系统,-1 武汉便宜做网站 国家制定并不断完善网络安全战略全面评估 英文网站推广 上海市网络信息安全 国家网络信息安全委员会 做个网站多少钱 搜索引擎的营销流程 信息网络安全视频 网络营销有哪些任务网站宝建站 旅游网站设计 网站流程图 网络安全绿盟科技 网络与信息安全管理人员配备情况 广告网络营销 网络营销有什么策略 网络信息安全部门 网络安全认证机制 信息网络安全办公室 中国网络信息安全法 惠州网站建设 信息安全业务种类 网络安全文稿 江苏网站设计公司 信息安全等级保护 步骤 违反信息网络安全案例 手机网络安全技巧 信息安全等级保护几级 特色营销的要素 成都的国家信息安全所 国内信息安全网站,-1 深圳网站制作 沈阳做网站价格 传统零售营销的特点是什么 网站营销是做什么的 网络信息安全部门 网络营销人才概念 中国网站建设 无锡微信营销外包 上海做网站的公 周一点子营销 免费网络营销课程 信息安全领域 cia 网络安全委员会 果园中国信息安全等级网 深圳网站制作 怎样黑网站 网络营销课程的ppt 广州定制网站设 计算机信息安全防范 聚美优品服务营销策略 提高网络安全意识建议 互联网营销语句 网络安全会议 邀请函 计算机信息安全防范 ui设计和网络营销 启明星辰 天?h网络安全审计系统 网站排版策划 重庆互联网营销公司