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

<a class="close" href="https://pci.locha.cn/">&times;</a>
武汉网络安全反病毒北京建网站公司官方网站怎么建设的网络安全测评与评估网络安全防护 制度网络营销历史发展微博与微博营销的概念自贡网站建设浙江网站建设国家对互联网信息安全吴缺穿越平行世界。   这个世界元宇宙技术完全成熟,并诞生了一款名为《文明》的游戏。 人人都可以进入文明世界,成为一名领主。   招募将领,发育兵种,收获资源,攻城略地!   文明世界里所获得的一切都可以带到现实中。 吴缺在进入文明世界时获得了万物增幅系统,通过消耗增幅点数,可以获得华夏历史上的所有任务。   花木兰:“我将永远侍奉您,我的领主,吴缺大人!”   赵云:“我常山赵子龙的所信奉的一切,都因吴缺大人而生!”   李元霸:“跟着我吴缺大哥,才有饭吃!”   诸葛亮:“亮毕生心愿,唯辅佐吴缺大人!” …… 在如此之多的历史人物的辅佐下,吴缺超越同期领主,追赶往期强者,最终身边强者、美女如云,屹立在文明世界的顶峰!在圣灵大陆中,人人都有启灵的能力,为了升级,为了荣耀,而不懈努力的去修炼,为了早日达到巅峰。光明的背后总会伴随着黑暗,看我们的主角及其团队如何到达巅峰……罪恶,欲望,宝藏,传奇,理想,自由,欢迎来到大航海时代。重启大道、重塑天道这是正确的吗?一场看不见胜利曙光的战争,三百六十五帝浴血奋战,只为守护最后安宁,他们是万族的唯一防线。玄灵界,这片拥有着十境九地的广袤大陆之上,每隔千年便会产生一次降灵异象,伴随异象应世之人被称为玄灵尊者,而每任玄灵尊者的使命,就是带领灵族众将,重新封印上古异族。父母神秘失踪后,王令回到老家,原本只想在村里躲避追债,却不料某天发现手机里竟然出现了一款和现实接轨的游戏。 他打倒恶霸,带领乡亲们致富,建立属于自己的世外桃源! 只是,有时候这系统派的任务,有点奇葩。 表白村花? 昨天刚放狗咬的人家啊!怎么办,在线等!山河碎,群雄据,荒兽出,世间乱。 护客楼,天灵大陆上最大的一个护送组织;护客人,护客楼的第一执行人。 执我手中剑,护送天下客! 我为护客人,只为守护一方人! 漫天风沙,我于中独站 太多开挂,天赋变态小说 试试用凡人视角看待异世,主角穿越异世啥都不会混到了成年 机缘巧合跟着天骄才俊 一起修行。 一个即将灭亡的文明,一扇古老而神秘的门,开启一段文明举族搬迁的异世界之旅。
国家计算机与信息安全管理中心 中卫网站建设 信息安全风险的三要素信息安全 英国 建设网站具备的知识 佛山网站建设 签名档营销 一个好网站 思科2017年年度网络安全报告 运营商 信息安全,-1 网络营销必看 书籍 前世今生的因果关系咨询【www.richdady.cn】 投资项目【www.richdady.cn】 耳鸣的心理调适咨询【www.richdady.cn】 前世今生的修行方法【www.richdady.cn】 婴灵对家庭有哪些影响?【www.richdady.cn】 去世的父亲的去向解析咨询【企鹅383550880】√转ihbwel 前世因果咨询咨询【企鹅383550880】√转ihbwel 公司破产后如何重新创业威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 不爱读书的环境影响咨询【www.richdady.cn】√转ihbwel 外灵对人的影响咨询【σσЗ8З55О88О√转ihbwel 冤亲债主干扰的前世记忆咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 亲子关系的互动模式有哪些?咨询【www.richdady.cn】√转ihbwel 孩子压力大的前世记忆咨询【微:qq383550880 】√转ihbwel 如何克服“缺心眼”的问题咨询【企鹅383550880】√转ihbwel 缺心眼的案例分享咨询【企鹅383550880】√转ihbwel 缺心眼的心理调适咨询【微:qq383550880 】√转ihbwel 4. 财运与事业发展咨询【www.richdady.cn】√转ihbwel 孩子不爱读书的阅读计划咨询【σσЗ8З55О88О√转ihbwel 前世缘份的前世今生咨询【σσЗ8З55О88О√转ihbwel 前世今生的轮回有哪些真实经历?【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 网络安全人员评估法案 网络安全办公室王主任 营销环境 购物型网站 国家信息安全局成都 嘉兴网站制作 网络安全测评与评估 互联网+ 信息安全 本溪网站建设 诊断式营销 网络安全法 重点 全国信息安全协会 北京网站设计价格 专业的营销型网站建设公司 大莲网站建设公司 北京建网站公司 网络安全防护 制度 自贡网站建设 g20网络安全 内蒙做网站郑州最好的网站建设 账户信息安全管理的核心内容,-1 网络安全产品系列名称 无锡做网站多少钱温州购物网络商城网站设计制作 微信营销有多少种方式 edm营销招聘 经典新媒体营销案例 信息安全控制措施是指 经典新媒体营销案例 做内贸现在一般都通过哪些网站 铜陵网站建设 南宁网络安全大赛 网站建设官方网站 思科2017年年度网络安全报告 思科2017年年度网络安全报告 网络安全防护 制度 威胁网络安全的主要因素 mmm营销 个人信息安全案例 行业平台网站建设 网络营销评价方法 互联网+ 信息安全 上海公司做网站 武汉网络安全反病毒 网络安全与信息 网络营销策略论文 php 网络安全 计算机信息安全检查 4i营销理论的缺点 营销型网站策划 中孚网络安全隔离卡 信息安全风险的三要素信息安全 英国 国内网络安全公司 营销 沙龙 营销型网站策划 运营商 信息安全,-1 专业的营销型网站建设公司 个人信息安全保护研究意义 运营商 信息安全,-1 网络安全必要性2016 防火墙 公共网络安全 泰州全网整合营销 建设网站具备的知识 微信营销有多少种方式 网站的方案 网站建设需要多少钱 信息安全 院士 卓进网站 医院网络营销 大莲网站建设公司 德国网站建设 陕西省 信息安全 竞赛,-1 甄别网络信息维护网络安全 潍坊网站建设 马 国家信息安全局成都 网络营销seo 吗 亚太信息安全大会 一个好网站 美国网络安全标准 网络营销必看 书籍 网络安全管理人员 手动添加网络安全性 视频营销vip教程 《外贸网络营销》 诊断式营销 娄底建网站 手动添加网络安全性 网站客户评价 b/s架构 网络安全 网络安全厂商 网站客户评价 网络安全重要事件 信息安全形势 信息安全登记 网络安全必要性2016 建网站的程序免费 网站制作 价格 网站信息安全解决方案 怎么做网络营销策划书 第四届网络安全论坛 网站模版下载 网络安全实施计划 信息安全等级保护发布 网络信息安全实训室 信息安全控制措施是指 防火墙 公共网络安全 营销模式案例分析 邢台网站制作哪家强 常州网站优化 网络营销中4C的特点 济南网络营销推广公司 全国网络信息安全大会 2014 微博如何开展营销活动 信息安全 是哪三者紧密结合的系统工程 一个好网站 网络安全办公室王主任 网络安全学院课程设置 网络营销系统平台 购物型网站 企业信息安全保护的重要性 卓进网站 嘉兴网站制作 路由器无线网络安全设置 微博如何开展营销活动 互联网+ 信息安全 免费域名网站的 网络安全重要事件 诊断式营销 响应式外贸网站案例 教育行业营销策划方案 全国信息安全协会 信息安全的公司排名,-1 个人信息安全培训通知 专业的营销型网站建设公司 北京网站设计价格 超索引擎营销