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

<a class="close" href="https://qgmxgm.duqo.cn/">&times;</a>
他人委托我做网站合肥 酒店 网络营销请举几个web2.0风格的网站例子(中/英文)分别说明其网站构架福州医院网站建设公司珠海医疗网站建设公司信息安全简介,-1如何学习网络安全的知识长春 建网站长春制作网站青岛手机网站制作讲述了极光会成员的日常。  穿越九州世界,成为秦皇嬴政的十六公子——赢长歌。 这里更是汇聚了九州历史所有朝代,武林世家。   赢长歌自幼无所事事、贪图享乐,更是自己开了一个风月酒楼。   这也成为咸阳城津津乐道的‘美谈’。   岂料天道呈现,金榜公布!   嬴政:“寡人大秦横扫六国,一统天下,这榜单必然是我大秦第一!”   汉高祖:“朕大汉马踏匈奴,镇杀西域,天下舍我其谁!”   然而伴随着金榜公布……   嬴政大惊:“我儿长歌,有大帝之资!” 李江,一个不是这个世界的人来到了这个世界。他没有比别人更多的本事,唯一的长处就是他有别人永远都没有的经验。经验这个东西,可以让一个平凡的人成为神,不是神话里面的神。 李江,觉得自己不是神。他只是多了一点别人没有的记忆,这是老天爷的恩赐;或者是上帝的奖励。总之,他来了,带着神一样的能力,来到了这个世界。他不是来改变这个世界的,但是世界却要注定因他而改变! 哥不是神!但哥却可以成为神话!因为一个绝色女人,黑客和黑帮势不两立。 键盘侠如何跟舞枪弄棒的黑帮一决高低? ······ 中国版《教父》,脑洞大开,令人耳目一新!    天选降临,蓝星各国分为不同文明,每个文明抽取一百人进入天选空间,以神话底蕴为力量源泉,展开竞争! 西方天使、希腊众神、克苏鲁神话、埃及法老、樱花国八百万神…… 唯独,没有炎黄神话! 蓝星之上,炎黄经历文明断层,举头三尺无神明。 直到云泽穿越而来。 云泽:“我炎黄乃上古文明!上有盘古开天辟地,下有仙神护国安民!” 蓝星诸国:“别搞笑了,炎黄无神,众所周知!” 半年后…… “这天选不公平!炎黄本就是高级文明,随便挑个神就能碾压我们,这还怎么玩!”杨立因为农村出身被女友家嫌弃,被五十万彩礼逼退。看破感情,又不慎坠崖,被豪门美女救下,意外得到先祖传承。自此杨立玩转都市,纵横天下......穷了十好几代,你告诉我叶家有个仙尊老祖? 叶不凡不得已,牵着牛儿,开始了一段弑仙屠魔的之旅! 修炼我又快又猛,杀人我又猛又快! 惹到了萧家?大武朝最鼎盛的修真家族? 那得说声抱歉了,因为主角外挂已到货! 纳尼,老祖下线? 不要紧,都不要紧,我和牛儿冲上仙罡杀天尊! 岳峰,蓝星玩家联盟核心团第四军团长,180级六转大剑士。 在抵御异世界文明入侵失败蓝星彻底沦陷之际,他借助时空神器的力量携带游戏记忆重回三年前,【降临】开服前夕。 三年多的游戏生涯,让他知晓无数赚钱技巧、副本攻略、传说任务、装备出处…… 这些还不算,在第一次登陆游戏的时候,岳峰意外发现背包当中竟然携带了游戏中唯一的圣器《传承之章》。 凭借种种优势,岳峰在游戏中找回爱人,建立势力,统一游戏版图。 当三年后位面融合的时候,异位面降临者们悲哀的发现,等待他们的是游戏内攀升到了极致的工程学科技以及无数装备精良的玩家。 当团结一切力量消灭所有入侵者之后,岳峰发现,更大的挑战,还在后面……[不喜勿喷]一部日常啰嗦水文。我写文是随心,而不是随意。身患绝症的叶文偶得太极拳的真传,并且觉醒了弘扬武学系统! 只要他用武学影响更多人,就能获得积分,兑换顿悟机会,获得各种高阶武学! 甚至,治好自己的病。 从此,叶文开启了他的练武直播! 拳震所有武林宗门,脚踏世间不服之人! 只有你想不到的招式,没有我治不了的高人! 所有人都要恭恭敬敬地,在键盘上叫一声“武神”。 叶文:“货真价实的太极拳要不要学?飞檐走壁的梯云纵要不要了解一下?不要?早晚你要跪地求着我要!”
四大门户网站 被遗忘权是网络安全 网络安全运维面试题 互联网 与传统营销区别 他人委托我做网站 这样建立自己的网站 网络营销功能建议 青岛做网站 铜仁网站建设 网站建设:翰臣科技 投资项目的前世记忆咨询【www.richdady.cn】 事业不顺的职业规划【www.richdady.cn】 前世缘份的重逢有什么迹象?咨询【www.richdady.cn】 投资项目的前世因果【www.richdady.cn】 如何缓解耳鸣症状咨询【www.richdady.cn】 前世缘份咨询【www.richdady.cn】√转ihbwel 干扰的自我感知方法【σσЗ8З55О88О√转ihbwel 工作压力大导致的精神不振威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 不爱读书的案例分享咨询【www.richdady.cn】√转ihbwel 孩子不爱读书的阅读习惯如何培养?咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世老公的前世影响【企鹅383550880】√转ihbwel 婚姻生活不顺【企鹅383550880】√转ihbwel 升迁障碍的职场瓶颈咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 公司破产的法律咨询咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 如何解决感情纠纷?咨询【微:qq383550880 】√转ihbwel 发育倒退的案例分享【企鹅383550880】√转ihbwel 与男友前世的前世缘分【www.richdady.cn】√转ihbwel 自闭症的康复训练咨询【企鹅383550880】√转ihbwel 前世老公的前世记忆咨询【企鹅383550880】√转ihbwel 强迫症的康复训练咨询【σσЗ8З55О88О√转ihbwel 星沙做网站 深圳高端网站设计 网络安全和信息办公室 棕色网站 模板网站与定制网站的区别 营销客软件 济南网站制作设计公司 电子商务 网络安全 网络营销Ar是什么 网络安全违法举报中心 衡水商城网站制作 公安网络安全部门 天津网站设计 网络安全周宣传活动社会化内容营销案例 四大门户网站 合肥 酒店 网络营销 珠海医疗网站建设公司 长春 建网站 青岛手机网站制作 seosem病毒营销长尾理论详解 网络安全风险管理 台州网站建设 线条类网站 被遗忘权是网络安全 中美 网络安全 2017 网络安全认证官网 成都旅游网站建设 网络安全认证官网 网站策划图 品牌营销特征 自已建网站 网站建设 武汉 网站怎么设置支付 网站怎么设置支付 珠海医疗网站建设公司 西安网站公司 山东大学信息安全排名 铜仁网站建设 专业制作网站 郑 网络营销工具的概念 电子商务 网络安全 自己做网站挣钱不 他人委托我做网站 我国信息网络安全现状分析 网络安全法 是法律吗 杭州企业网站制作 长沙手机网站设计 冯燕春 信息安全肥城网站制作 网站设计的简称 android网络安全开发 网站方案策划书 青岛建网站公司 漏洞对网络安全的危害 网站设计的简称 网络信息安全小组成员 网络安全周宣传活动社会化内容营销案例 惊艳的网站 网络信息安全小组成员 北京网站建设公司电话 中山 网站制作 提供邢台网站优化 营销思维 中国网络安全审计 信息安全相关单位,-1 烟台哪个公司做网站好 网络安全风险管理 成功网络整合营销案例 医疗器械网站制作 自己做网站挣钱不 个人网站企业网站 杭州网站建设设计公司 山西武汉网站建设 淘宝 病毒式营销 模板网站与定制网站的区别 信息安全基础课程简介 2017西安信息安全大赛 网络信息安全政策营销科技 福州医院网站建设公司 网络安全协议是为保护网络和信息 这样建立自己的网站 义乌网站建设工作室 无线网络安全的应用 如何做好外贸网络营销 网络安全违法举报中心 青岛做网站 深圳高端网站设计 网络营销事件营销 建设企业网站公司 网络安全评审 网络营销事件营销 这样建立自己的网站 保定 营销型网站建设 网络安全 活跃 论坛 网站建设:翰臣科技 信息安全管理协同体系 大连网站建设 广州网站优化 网站设计和制作费用 衡水企业做网站推广 网络安全相关技术 苏州装修公司网站建设 网站与维护 信息网络安全评估 装修网站建设 杭州企业网站制作 网络营销本科学校 电商淘宝网络营销 网络有哪些营销方式 网络安全运维面试题 90信息安全 无线网络安全事件 信息安全红蓝对抗 高校网络安全解决方案 网络信息安全政策营销科技 深圳高端网站设计 上海的广告公司网站建设 互联网 与传统营销区别 棕色网站 网站营销方案 网络营销公司的排行榜 营销客软件 背景图网站武汉 网站建设 信息安全红蓝对抗 电子商务 网络安全 信息安全条款 网站如何推广 网络安全违法举报中心 阿克苏网站建设 被遗忘权是网络安全 公安网络安全部门 单页面网站 网站主色调简介怎么说 网络安全周宣传活动社会化内容营销案例 天津网站设计 网络信息安全考试 远程接入过程管理敏感国家