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

<a class="close" href="https://6efwrd.3684.com.cn/">&times;</a>
淘宝营销图网络安全行业有哪些信息安全都有哪些方向上海交大网络安全教程 优酷内容营销 社会化营销案例营销型网站和展示型网站的区别网站制作推广公司4.29网络安全华为网络安全案例分析网站改版方案春秋五霸,战国七雄,合纵连横,逐鹿中原叶辰,原本是一名普普通通的大学生,在宿舍玩电脑的他意外触电穿越到了北宋靖康之难的时间,成为被金人押送回金国领地中数万宋人当中的一员,本以为生活无望,但却意外觉醒了神级抽奖系统,看你是如何从山寨一步步走向庞大帝国。宇宙初开诞生天地奇宝,鸿蒙灵珠,生死碑,长生草,对应武者的精气神 ,得三件奇宝者可得永生。这个世界是怎样的,人类又是怎样的,我不明白。 只想让大家的心在这永夜之中彼此相连,永远永远。少年苏渊经历三次凝丹失败,机缘巧合拜四圣兽之一的青龙为师,踏入武道之途,并且开启自身龙族和凤族血脉,从此天高海阔,前途无量。 探索秘境,结天骄,诛邪魔。江鸿只是在课堂上看了一会西游记,没想到看着看着 睡着后竟然穿越了! …… 不对,这一群和尚是谁啊! 不对,我的声音怎么变了! “明日玄奘法师就要去求取真经了,可真想跟着啊。” 什么,这旁边和尚说的是什么啊! 江鸿忧愁的摸了摸自己的头,顿时爆了粗口 谁给我头发剃了,我怎么成和尚了。 还有,这桌子上的《西游记》是认真的嘛! ……本书正在大改,作者会尽快修改完毕。 ———— 威信公众号:竹楼听细雨 欢迎大家加入胯下爪黄驹,手中虎啸刀。两侧赤虎骑,身前曹氏君。热血报兄仇,冷器斩贼寇。这是一个良将报仇的故事。他,误入异界,艰难求生,于夹缝中生存,走出了尸山血海,身后是血雨腥风。 她,全家灭门,一人苟活,带着复仇而生,斩尽了天下恶徒,剑下是冤魂哭喊。 他是帝国眼中的杀神。 她是世人眼中的人屠。 命运将两人推向了对立,巅峰相见,溅血成花。在一个强者林立的世界,万亿物种生灵衍生,不断地突破自身,打破天理禁锢,追寻命运之根本,长生之久视! 一个平凡普通的人族少年,从一个小村落走出,搅动风云,气吞山河,开启一个新时代!
建立网站的步骤 南山网站制作 成立一个做网站的公司成本 网络安全的通知 金融行业信息系统信息安全等级保护测评指南,-1 网络营销理论渊源 信息安全类公司 网站建设公司 2017年网络安全大会 兰州网站建设公司 珠海集团网站建设外包 深圳网络安全信息安全培训 坚守信息安全底线 网站改版公司 河南大学生信息安全网络营销简历怎么写 互联网营销就业优势和劣势 电脑网络安全培训 邮件营销的七个步 网络安全体系由 岳阳网站建设 国外的app设计网站 湖南衡阳网站建设 中山营销型网站设计 无锡网站建设哪家专业 重装系统是信息安全技术吗 岳阳网站建设 佛山营销网站建设服务 网络 信息安全 协会 衡水做网站公司 免费建站网站有哪些 重庆网站开发公 商务网站建设方案 北京市网络与信息安全信息通报中心 国家网络安全管理员的认证 互联网信息安全产品 中国网络安全大会2017 网络安全行业有哪些 内容营销 社会化营销案例 4.29网络安全 增强信息安全意识 创手机网站 网络营销公司 网站利用百度离线地图 兰州网站建设报价 网络安全的热点问题 网络营销培训课程 网络营销理论渊源 信息安全 清华 网络安全峰会2017 深圳公司网站改版通知 河南网络营销 支付宝全网营销软件 商务网站建设方案 重庆网站开发公 市场营销部门规划方案 厦门微网站建设 制作网站报价 临沂学营销 网络安全法与网信工作 呼和浩特做网站的公司有哪些 国家网络安全管理员的认证 网络安全法的主管部门 信用信息系统安全保护级别 测评资质 公安部信息安全等级保护评估中心 微网站无锡 建立网站的步骤 模板板网站 网络安全法的主管部门 网络营销有用的书籍 网站建设前准备 计算机网络安全课程设计报告 网络营销有用的书籍 珠海集团网站建设外包 支付宝全网营销软件 霸屏营销推广 兰州网站建设报价 互联网信息安全产品 邢台网站建设 网络安全身份认证 乐平网站建设 昆明建企业网站多少钱 信息安全的法规 兰州网站建设公司 家庭网络安全设置 宣传不网站 网络安全偷取手机内的信息 龙岩网站制作 网站改版公司 网站建设公司 深圳外贸网站建设 湖南衡阳网站建设 专注合肥网站建设 谷歌营销 如何利用网站来提升企业形象 河南大学生信息安全网络营销简历怎么写 软营销例子 网络安全渗透测试流 北京市网络与信息安全信息通报中心 中国互联网络安全 中国信息安全认证证书 义乌网站建设 信息安全 清华 网站设计风格 网站年费 漳州做网站 宣传不网站 互联网保险 信息安全 珠海集团网站建设外包 网络营销理论渊源 国外的app设计网站 坚守信息安全底线 思考式体验营销 网络安全的热点问题 河南大学生信息安全网络营销简历怎么写 成立一个做网站的公司成本 网站设计建设 武汉 电脑网络安全培训 烟台网站制作 2017年网络安全大会 网络安全体系由 原型图网站 建网站用什么语言 国外的app设计网站 三只松鼠干果营销方案 国家网络与信息安全协调小组 中山营销型网站设计 搜索引擎营销常用方式 佛山网站设计讯息 重装系统是信息安全技术吗 安徽省 信息安全协会 网站年费 佛山营销网站建设服务 南通网站建设空间 昆明建企业网站多少钱 衡水做网站公司 武威网站建设 邮箱营销软件哪个好用吗 重庆网站开发公 星巴克和微信营销 计算机网络安全课程设计报告 北京市网络与信息安全信息通报中心 郑州网络营销技术学校 如何实现网络安全 互联网信息安全产品 网站建设前准备 搜索引擎营销常用方式