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

<a class="close" href="https://28a.rangche.cn/">&times;</a>
上海高端品牌网站建设网络事件营销方案全球信息安全认证百元建网站网络信息安全实验报告公安部信息安全查询国家网络安全活动周搜索引擎营销的含义与分类个人信息安全 案例工作室网站模板闲散退役兵王庄毕因缘巧合,住进了女神别墅,面对霸道美女总裁,他表示亚历山大。 庄毕:“女人,今日你对我拳打脚踢,来日我必然回报你一双儿女。”一家人的命运因为一个孩子就此改变!五彩斑斓的背后总是深邃的黑……马克?李,无论干掉你的是谁,我都会为你报仇,以告慰你在天之灵。 注①:第一次写文,用的是第一人称,慎入。 注②:因为是同一个作者写的, 所以这篇也能在话本小说(如果有更多 人支持的话将来可能会在B站?)找到。 注③:作者是学生党,随缘更新。 社畜赵良阳刚通宵加完班就被某神秘大佬盯上召唤进了异世界。别人都是穿越到人的身体里成为主角拯救世界,而我只能魂穿到一杆枪上打打辅助。被迫在这个世界里跟着主角走上复仇之路。 主线全靠躺。 陆哥你进来,刚刚外面人多,我在这里给你跪下了穿越到古代,家中一穷二白! 不怕,运用21世纪的知识,随便搞点发明创造,改善家中生活! 一不留神富甲一方,漂亮老婆天天催着纳妾,小日子不要太幸福! 蛮族入侵,那就组建骑兵,制造火炮,打他丫的! 影响我平静的生活,敌寇虽远必诛!一场大地震,让返祖狂潮席卷全球。 动物、植物、人类,都在这场灾变中,变回自己祖先的模样。 武者、修士、妖鬼、仙人、恐怖的鸿蒙古兽…… 返祖的次数越多,返祖的祖先越古老、强大。 就在所有人都好奇会返祖成哪位祖先时。 李响惊讶发现,自己可以主动选择返祖对象。 第一次返祖,别人都觉醒武者祖先,李响却选择了武侠时代最后一名炼气士——张三丰,以内家拳、太极剑、丹道,震撼世人。 接着是第二次返祖,第三次返祖…… 直到第九次返祖,李响看着迎面走来的鸿钧虚影,露出了无比灿烂的笑容。传闻大禹每逢七百年将遇巨变,而江山的传承将要落到萧正的肩膀上,仁帝为摆脱魔咒,传他大禹帝王阁无上经文。而后上青云峰入玲珑观,得‘机缘道人’点拨,心智也变得成熟。待到一切安排就绪,美人在怀,情丝渐深。朝堂和江湖的纷乱也逐渐露出了端倪......什么是江湖?江湖便是人心,人心恶,江湖险。江湖风气云涌,邪恶势力盘根错节蓄势待发,墨家机关术再现江湖,是正是邪?活人炼僵尸,野兽军团汹涌来袭。八臂观音走下神坛,海底神功刀枪不如倭寇大军更要如何抵挡?一把来历不明的纯钧名剑,一处富可敌国的稀世宝藏,一场身不由己的家国恩怨。更有儿女情长,爱恨纠葛,他该如何面对?我是白清印,我死了,但这次的死亡颠覆了我的认知女主意外穿越时空,来到了西游世界,投胎成三界的救世主,并结识唐僧师徒四人。 凭借着资质和努力,她很快习得法术,脱胎换骨。在这里,她也相遇了很多伙伴,和取经团队一起行侠仗义,除暴安良,这是个不一样的西游故事,不一样的人物设定,全新的西游之旅
思而忧网站 国际网络营销是什么 信息安全的发展依顺序 网站设计贵不贵 山科信息安全怎么样信息安全技术 安全漏洞等级划分指南 信息安全评估常用参数 网络安全法对央行履职 网络安全法对央行履职 网络营销产品的层次 郭启全网络安全趋势 与女友前世的因果关系咨询【www.richdady.cn】 财运不佳的心理调适【www.richdady.cn】 学习成绩差的环境影响咨询【www.richdady.cn】 财运不佳的财富积累方法有哪些?咨询【www.richdady.cn】 去世的母亲的前世修行【www.richdady.cn】 不爱读书咨询【www.richdady.cn】√转ihbwel 孩子不爱读书的应对策略咨询【σσЗ8З55О88О√转ihbwel 维护良好家庭关系的秘诀咨询【微:qq383550880 】√转ihbwel 大龄剩女的婚姻选择有哪些?【σσЗ8З55О88О√转ihbwel 无形干扰的案例分享咨询【σσЗ8З55О88О√转ihbwel 前世缘份的前世案例咨询【www.richdady.cn】√转ihbwel 感情纠纷的情感和解咨询【σσЗ8З55О88О√转ihbwel 迟缓儿的前世因果威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 干扰咨询【微:qq383550880 】√转ihbwel 外灵干扰的前世记忆咨询【微:qq383550880 】√转ihbwel 阴间生活的前世因果咨询【企鹅383550880】√转ihbwel 耳鸣的自我提升咨询【www.richdady.cn】√转ihbwel 儿子抑郁症的咨询技巧【σσЗ8З55О88О√转ihbwel 有官司咨询【www.richdady.cn】√转ihbwel 与老公前世的故事分析咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 国家信息安全测评信息安全服务资质 洛阳网站优化 营销推带 营销团队队员介绍 山东网络安全大赛报名 昆明网络营销招聘 中国平安信息安全 企业互联网营销的策略 华为信息安全认证 最经典的微信营销案例 经典微信营销软文 最新的网络安全产品 网站jianshe 商业型网站 门户网站建设 网络安全法 评估 国家信息安全测评信息安全服务资质 洛阳网站优化 企业网络营销方案 网络安全动漫 网络安全的 陕西省信息网络安全协会 制作网站的软件 聊城网站优化案例 无线网络安全设置方法 2017年信息安全竞赛 定制类网站 scan扫描信息安全技术 西安网站建设制作 营销的特点 国内 信息安全 经典微信营销软文 网络信息安全标准 网络安全控制技术 云南制作网站的公司 企业官网响应式网站 保护信息安全的技术和手段有哪些,-1 网站jianshe 网络营销都包涵哪些 信息安全巡检服务 网络信息安全部组长 企业宣传网站建设 网络信息安全技能大赛 专业 网络安全 营销概念是什么意思 顺德做网站的公司哪家好 思而忧网站 高校网络安全方案 广州互动营销公司排名 网络安全动漫 it系统开发新技术展示探讨系列课程it信息安全课程 idc isp信息安全管理系统信息安全管理,-1 上海专业做网站公司地址 中国平安信息安全 超市建网站 信息安全评估常用参数 网络营销分为哪几大类 互联网数据中心和互联网接入服务信息安全管理系统技术要求 网络营销的评价指标 成都有信息安全 广西网络安全技术大赛 网络安全破坏 专业 网络安全 信息安全师国家职业 企业互联网营销的策略 网络安全 开发语言 企业网络营销方案 网站怎么备案 网络安全 开发语言 网络营销的评价指标 网络安全法条款导读 e mail营销主题 兴化网站制作 信息安全检测公司排名 营销有哪些渠道 鄂州网站建设 信息安全等级测评资质 国际网络营销是什么 中国网络信息安全展 上海专业做网站公司地址 福州做网站公司 国内 信息安全 烟台做网站 武夷山网站建设 乾冠信息安全 经典微信营销软文 营销者网站 长春网站建设 西安网站建设制作 鞍山网站建设 网络安全和java工资 陕西省信息网络安全协会 新闻媒体营销 企业互联网营销的策略 鄂州网站建设 网络安全控制技术 网络安全法解决方案 广元网站建设 高校网络安全方案 松岗建网站 制作网站的软件 网站的管理 网站建设流程案例 网络安全和java工资 免费注册网站空间 校园网络安全上市公司 网络信息安全标准 北大青鸟网络安全 网站建设制作 南京公司哪家好 洛阳网站优化 网络安全的 乾冠信息安全 网络安全科技 南昌网站定制 全球信息安全认证 无线网络安全设置方法 汉中网站建设 门户网站建设 佳木斯网站建设 营销的特点 idc isp信息安全管理系统信息安全管理,-1 网络安全监测中心 网络事件营销方案 织梦网站图片代码 互联网数据中心和互联网接入服务信息安全管理系统技术要求 最新的网络安全产品 北大青鸟网络安全 淘宝网网络营销理论 深圳网站建设服务公司 网络安全培训意义 网站色调为绿色 腾讯公司网络营销分析 网络安全专项治理报告 信息安全管理实用规划 上海高端品牌网站建设