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

<a class="close" href="https://ujj4.4890.com.cn/">&times;</a>
广州信息安全测评中心西安论坛网站制作维护赣州做网站自助外贸英文网站建设手机网站开发制作珠海网站推广公司网站开发公司网络安全状况分析北京企业网站建设方工控网络安全 市场淄博那里有做网站的世间本不太平,少年又恰恰风华正茂,一路高歌。 穷奢极欲,物欲横流,理想的乌托邦撞向现实的远方,蓬勃生长,伟岸的力量。抑郁症患者的自救历程……九龙大陆,强者为尊,武道一途,与天争命,且看一朝皇子,凭三尺长剑,如何皇临天下!武道巅峰,谁为皇? 为了心中的一丝执念,阳炎勤修武,争太子,夺皇位,战天下,历生死,证武道,破轮回! 号令天下,莫敢不从!平平无奇的30岁青年厉青因救人重生回到高中时代,又获得了能力复制系统。回想起那些毁了他的生活,让他日夜挣扎在水火之中的人们…… 我要亲手断送,你们的未来!一九二七年,我得到了一次侦查任务,在追踪一群深入到中国内地日本人的同时,发现了一个惊人的秘密。纪历元年,战争爆发,科尔特城市陷落,科尔特内形势复杂,官方为了取得科尔特城市陷落的秘密,派出萤火虫小队前往救援入狱五年,再回都市。 叶昭只得感叹世事无常。 前脚遭受前女友背叛,后脚江氏大小姐主动追求。 大小姐的脾气不好怎么办?爷乐意,宠着! 兄弟们喜欢搞事情怎么办?爷惯得,忍着! 左手悬壶救世,右手银针杀人,左右逢源,天下无双!河流蜿蜒,密林深处,一处古老部落正在举行盛大的祭祀仪式,而我们最美丽圣洁的雅加娜女神也将降临,在这片古老神秘的土地上,将发生怎样动人美好的故事哪?讲述命运的故事技术到位公羊怀策,杀一个邵宝艳,再杀一个曌保燕,再杀一个韶保燕,总之快乐了就好了。
企业微信手机片网站制作 清华信息安全实验室 2014科研工程师 实验室信息安全检查 国安 信息安全 做网站设计制作的公司 ps制作网站过程 网络营销的概念有哪些 信息安全研究院 招聘,-1 高端网站建设搭建 动画网站模板 孩子压力大【www.richdady.cn】 前世缘份的故事有哪些案例?【www.richdady.cn】 感情纠纷的情感沟通方法有哪些?咨询【www.richdady.cn】 如何化解冤亲债主的干扰?咨询【www.richdady.cn】 事业不顺的职场心态咨询【www.richdady.cn】 暗恋【微:qq383550880 】√转ihbwel 大龄剩女的婚姻选择咨询【微:qq383550880 】√转ihbwel 内心恐惧胆怯的案例分享咨询【www.richdady.cn】√转ihbwel 发育倒退对孩子心理的影响【微:qq383550880 】√转ihbwel 婴灵的超度方法【企鹅383550880】√转ihbwel 升迁障碍【www.richdady.cn】√转ihbwel 人际关系不好的咨询技巧咨询【www.richdady.cn】√转ihbwel 婴灵的化解仪式【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 升迁障碍的职场瓶颈如何突破?【σσЗ8З55О88О√转ihbwel 纠纷的自我保护咨询【企鹅383550880】√转ihbwel 纠纷的预防措施咨询【微:qq383550880 】√转ihbwel 事业不顺的案例分享咨询【σσЗ8З55О88О√转ihbwel 忧郁症的原因分析【企鹅383550880】√转ihbwel 邪灵的定义与特征【企鹅383550880】√转ihbwel 特殊学校的前世影响【σσЗ8З55О88О√转ihbwel 如何保障国家信息安全 网络营销主修课程 图派做网站 常州互联网营销公司 西安专业网站建设 网站建设外包 3合一网站 国内网站设计案例 做网站设计制作的公司 公司网站开发公司网络安全状况分析 什么是事件营销推广 深圳网站外包 网络安全预警设备 顺德网站建设要多少钱 做网站一般用什么语言 深圳市移动端网站建设 河北公司网站制作设计 广州网站建设工作室 营销主要营销 互联网网络安全 如何设计公司官网站 网站模板设计 肇庆网站建设 甘肃营销型网站制作 赣州做网站 淄博那里有做网站的 国内网站设计案例 信息安全vpn源码 信息安全vpn源码 免费商城网站 网站的目的 建设公司网站的重要意义 网络安全管理工作方案。 网站制作的趋势 珠海做网站 顺德网站建设要多少钱 西安论坛网站制作维护 西安做网站 数据中心 网络安全法 isp信息安全系统建设 信息安全专家,-1 实验室信息安全检查 网络安全技术好学吗 网络建设与网站建设 成都建设网站首页 科汛 kesioncms v8.05 企业网站建设入门视频教程 社会营销观念星巴克 青岛的网站设计 信息安全市场总监 搜索推广营销职业规划 网络信息安全案例 门户网站策划书 如何保障国家信息安全 北京哪些大学的信息安全专业好 门户网站有哪些 网站后台编辑器 tcp/ip协议族加密术和网络安全 甘肃营销型网站制作 肇庆网站建设 网络安全大会 数据 个人信息 济南网络营销推广公司哪家好 信息安全专家,-1 泸州网站建设 免费商城网站 常州互联网营销公司 烟台专业网站建设 营销组合四大要素 营销型网站成功案例 isp信息安全系统建设 网络信息安全案例 做网站设计制作的公司 首席网络安全官 网络营销主修课程 网络安全等级评估报告 网站模板设计 网络营销特点和优式 服装网站 欣赏 西安专业网站建设 烟台专业网站建设 如何设计公司官网站 安徽合安房产营销策划有限公司怎么样 武汉建网站 公安机关网络安全备案 深圳营销课程培训 南通网站 网络营销课程感想 网络安全大会 数据 个人信息 网络安全预警设备 北京 网站设计 2014年 网络安全 国内网站设计案例 电商网站多少钱 图派做网站 传统网站和手机网站的区别是什么 网站设计规划书 信息安全事件 级别 企业网络安全公司 网络营销的个性化 用户信息安全事件定义中国的信息安全技术 深圳市移动端网站建设 首席网络安全官 公安机关网络安全备案 搜索引擎营销模式特点 卫士通信息安全技术有限公司 河北公司网站制作设计 扬中网站建设 信息安全系统不需要 不可抵赖性 牡丹江网站建设 手机网站开发制作 怎么取消网络安全密钥网络信息安全领导 网络营销的个性化 营销主要营销 信息安全研究院 招聘,-1 医疗网站建设 清华信息安全实验室 2014科研工程师 中国国家信息安全测评中心 互联网网络安全 bat招聘信息安全专业 电商网站多少钱 中国国家信息安全测评认证中心 亚马逊服务营销 高端网站建设搭建 地产平台网站模板 贾君鹏营销 玄武盾网络安全 河北公司网站制作设计 网站没流量 肇庆网站建设 营销型网站成功案例 企业微信手机片网站制作 深圳网站外包 常州互联网营销公司 甘肃营销型网站制作 国家信息安全举报投诉,-1 上海高端定制网站公司