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

<a class="close" href="https://p7k.8kss.cn/">&times;</a>
旅游电子商务网站的建设包括哪些步骤?网站建设中有哪些常用技术?网络营销优化顾问互联网信息安全解决产品网络营销推广方案移动端网络营销推广方案互联网营销理论网站推广营销案例网络安全宣传情况设计师网站网络营销管理实例一名少年偶得一把断刀,孤身一人历经结识好友,共同成长,寻找自己的过去,历经磨难,最终能否封神?自古以来,宗教传承从未断绝,而宗教的故事也光怪陆离,数不胜数,带你看一些你所不知道存在或不存在的怪事。他只身闯荡上海,从一个乡下“小赤佬”混到租界督察长,成了上海风云一时的人物。 1938年8月18日,上海南京路上,几位报童在拼命地叫喊着:“快报!快报!特大新闻,陆大奎被刺杀身亡!快报!快报!”以此来招来顾客。 ...... 昨天下午3点光景,中央旅社三楼的一间房间里。青纱帐中,陆大奎光着身子正在与三姨太调情。“叮铃铃”突然电话铃声响起。陆大奎说了句:你奶奶的。伸手去接电话。 陆大奎不情愿地:喂!我就是。 听到对方强硬的口气,陆大奎的脸顿时阴沉下来,脸上的肌肉也开始绷紧。 陆大奎搁下电话,心中疑惑不定。上次打了蒋介石外甥俞洛民的一句耳光后,被淞沪警备司令部抓去坐了几天班房,好不容易托人求情捐了一架飞机才了事。今天又打来电话,肯定不会有好事。 陆大奎心神不安地赶紧起床,穿好衣服,带了一名保镖急匆匆地出了门。刚跨出中央旅社大门才几步时,迎面射来一串子弹,陆大奎和他的保镖还来不及拔枪抵抗,就倒在了血泊之中…… 不请自来的客人,盯上我们生存的泡沫宇宙。将我们视为棋子,玩弄生命存在的真理概念。 有人说元气复苏即是毒药也是机遇。也是一个席卷整个世界诱饵。 不要修行,不要修行。源头充满大恐怖。 所有在迷雾中摸索的人,都会感染到充斥着死寂不祥气息。在前世躲藏了十几年终于为了妻子复仇成功的方寒,在被围攻至绝路后却穿越到平行时空的自己身上,刚穿越便发现自己被妻子拿着刀指着...异能者的觉醒,使人类面临着悬崖上的抉择。 强权与堕落,腐朽与血腥,谁来拯救混乱中的大陆? 一枚少年。 一个系统。 一句真言。 一个无厘头,世界观非常庞大的爽文。文章由瑞延风编写。故事线和世界观由优羽优神创作。是一部合作作品。目前任然在连载。希望大家喜欢。 故事从“第四时代”开始书写。 那是所有风云人物出世的时期....在古老的初生之地,混乱与纷争是永恒的主题,林玖自绝望与光明中降生,一路追寻预言的召唤,血脉深处的呐喊,则昭示其注定成为传奇。 封林是一个在北京潘家园旧货市场开旧物店的小老板,一次在给店里的老房屋装修的机会,竟然在家里墙壁地下暗格发现一个密室,不太大的密室角落里有着一口上了锁的红色的木箱子,盒子打开后里面有着几样东西,一块巴掌大纯金的腰牌。 一本非常破旧的遁甲巫术古书, 还有着一本记录了很多秘事的明朝古书,还有一张残缺不全的地图,箱子里面藏着很多的秘密,让他知道了自己的家族竟然是一个传奇盗墓家族的后人 从古至今的家族秘密缓缓的被揭开,父亲的突然消失,也与此事有关,是为了寻找哪些传说中的东西。 自己兄弟的回归,退役特种兵赵雷,去追寻着父亲的脚步去寻找那传说中的古遗迹,不得不踏入那些恐怖之地。 入活人的禁区,与僵尸斗法,与活人斗智,有一张尸面的鬼狐仙,荒冢野坟墓里的媚女,害人的白皮千年老狸子,披着美女人皮的行尸走肉,几十年难得一见沉没在海里的幽灵鬼船。 一张残破不全的地图,一截刻满符文的龙骨,到底藏着什么秘密? 写的不好
网站建设小技巧 完美营销会 优秀企业网站 乌鲁木齐网站制作 北京网站页面设计 成都市网络安全现状 掌握网络安全技术 广州做手机网站信息 伪静态网站 产品网络营销推广方案 前世缘份如何影响人际关系?【www.richdady.cn】 强迫症的自我提升咨询【www.richdady.cn】 人际关系不好的原因分析【www.richdady.cn】 孩子不爱读书的应对策略【www.richdady.cn】 前世今生的缘分再续【www.richdady.cn】 发育倒退的原因分析咨询【σσЗ8З55О88О√转ihbwel 升迁障碍的案例分享咨询【σσЗ8З55О88О√转ihbwel 升迁障碍的职场规划咨询【微:qq383550880 】√转ihbwel 心慌胸闷头晕的医学检查咨询【企鹅383550880】√转ihbwel 前世缘份的化解方法咨询【企鹅383550880】√转ihbwel 儿子不读书的改运方法【www.richdady.cn】√转ihbwel 冤亲债主的干扰原因【σσЗ8З55О88О√转ihbwel 婴灵的超度过程【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 外灵干扰的自我提升【微:qq383550880 】√转ihbwel 长期头脑混沌可能是哪些疾病的前兆【企鹅383550880】√转ihbwel 头脑混沌的原因及对策【微:qq383550880 】√转ihbwel 与公婆前世的前世解析咨询【www.richdady.cn】√转ihbwel 官司的前世因果【σσЗ8З55О88О√转ihbwel 儿子不读书的咨询技巧咨询【www.richdady.cn】√转ihbwel 前世老婆的咨询技巧咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 北京网站页面设计 信息安全杂志有哪些内容,-1 网站首页设计 营销推销的区别是什么意思 移动端网络安全 网络安全技术 教程 如何建立个人网站 全球网络安全市场报告 信息安全风险评估做什么 seo精准营销 乌鲁木齐网站制作 浙江网站设计公司电话 东莞网络营销外包网络安全 产业 网络与信息安全方向 培养计划 微营销新闻 中国信息安全认证中心 主任 信息安全监控体系 优秀企业网站 移动端网络营销推广方案 营销推广公司西安石家庄网站建设找哪家 谷歌营销的概念与含义 伪静态网站 奥巴马营销 网络安全攻防竞赛 网络安全执法案例分析 账号的克隆 网络安全 网站收录低 网络安全攻防 沈阳市做网站的公司 微博传播营销的特点 完美营销会 2015年网络安全大事记 360网络安全大会 网络安全练习 网络安全整改 珠海集团网站建设报价 网络安全测评备案 中科院信息安全所 网站站内优化 信息安全建设依据 2017上海网络安全论坛 搭建网站 网页 沈阳市做网站的公司 网络安全的危害有哪些 企业网站建立哪 旅游电子商务网站的建设包括哪些步骤?网站建设中有哪些常用技术? 企业品牌宣传型网站 微博营销涉及的范围 中国信息安全认证中心 主任 中国网络营销环境研究现状分析 市场营销和关系营销 产品网络营销推广方案 微信营销技巧 广东信息安全评测中心 网站后台开发 移动端网络营销推广方案 网站的栏目 微信网站模板 手机网络营销的案例分析 网站写文案 网站营销方案 成都市网络安全现状 2017上海网络安全论坛 关于注意网络安全 营销型平台网站 网络安全座谈会 信息安全热点事件 2015年我国互联网网络安全态势报告 路由器 网络安全 营销推广公司西安石家庄网站建设找哪家 网络安全新生态 信息安全实例 完美营销会 国家信息安全测评中心待遇 常用的信息安全防护方式是 中科院信息安全所 移动端网络安全 手机网站建设 的作用 伪静态网站 网络营销基础知识 网络安全的关键技术有 昆明信息安全培训,-1 网络营销战略和策略分析 互联网营销 问题研究 信息安全等级保护 整改,-1 珠海集团网站建设报价 信息安全意识培训ppt 王老吉病毒营销案例 太原建网站 qq音乐网络营销方案 网络营销120种 网络安全的防御 昆明信息安全培训,-1 网络安全的危害有哪些 刑天营销 浙江网站设计公司电话 邮件营销获取目标用户 珠海网站制作 信息安全等级分为 网络安全执法案例分析 广东信息安全评测中心 网络营销管理实例 网络安全技术文档 全国大学生信息安全竞赛2017 营销推广公司西安石家庄网站建设找哪家 信息网络安全接入技术规范 网络安全整改 信息安全风险评估做什么 贵阳网站开发 太原建网站 2015年网络安全大事记 网络营销专题页 黄鑫信息安全竞赛 网络营销师学多少钱 关于注意网络安全 手机网站建设 的作用 浙江网站建设企业 第八届中国信息安全博士论坛 延安网站建设公司电话石家庄网站设计制作服务 网站站内优化 网络安全防护评测报告 网站的栏目 邢台做网站公司 金融网络安全案例 产品网络营销推广方案 网站建设策略 网络营销师学多少钱 信息安全杂志有哪些内容,-1 常用的信息安全防护方式是 信息安全监控体系 营销名家 网络安全的危害有哪些 信息安全热点事件 手机端网站设计 公安信息安全 检测中心