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

<a class="close" href="https://n9x.71119.cn/">&times;</a>
如何让网站收录滨州建网站优营销项目案例新闻类营销目前网络安全市场国家领导人信息安全2017网络安全年会cert网络安全 魔力象限杭州 网站设计制作天蓝色网站江门网站建设君昊辰阴差阳错穿越到大宣王朝,重生在一名皇子身上。 坑爹的是,这位倒霉皇子居然落魄到给别人做下等家丁。 …… 他不但要赘婿逆袭成为家主,还要诛尽奸臣夺回大权,扫荡四夷称霸天下! 他的名言是:谁最牛逼就打谁的脸,谁不服气就打到他断气!宋乔买了辆奇怪的二手车,原本打算把车带去实验室洗洗涮涮顺便做个研究,却没想到在半路出了车祸,还被这倒霉玩意儿带去了银河系! “一定是一场梦,醒来之后我会很感动!”正当宋巧看着眼前的无数七彩星璇,惊叹着眼前景象的真实感,一个老头儿机械无情的声音突然响起:“鸿蒙即将解体!您将与我一同消逝于万里银河。” “怎么才能不解体!我不想死!” “寻找五灵之力!” 就这样,宋巧踏上了一条被老头儿死亡威胁的寻宝之路。 ...... 可是,让宋巧更为无奈的是...找着找着他怎么就吸收了这些宝贝,还要被派去拯救星系? 宋巧看着怀里的老婆孩子仰天长叹:唉!我明明就是个摆烂副队长,怕是不能胜任这项伟大的斗争啊! 所有人:白眼+臭鸡蛋。 ...【御兽+轻松+养成+脑洞清奇】   这个世界人人都是御兽师。   拥有众多神奇的御兽天赋:强化、元素、合体、心灵感应、生命治疗……技能空间、精神、时间、空间等等。   ……   傲娇小野猫:“御兽师给我加速!我看隔壁白虎欠收拾!”   短腿小柯基:“御兽师我想进化成巨龙!”     某新晋天王:“萧大神……我的宠兽卡瓶颈十年,在不进化就凉了! ”   某技能师传奇怀疑人生:“这加速效果,老夫生平仅见!”“三个月后灵气复苏,全民兽化植物化!” “同时,蓝星原住民远古蛮兽会走出地壳,两极反转,人类危矣!” 重生回到灵气复苏时代降临三月前,白良提前变异成柳树。 通过制造神迹,他被中州奉为通天建木! 国家一边疯狂喂养白良,一边根据白良的指引开启一系列准备计划,每一天都在震惊全球! “中州竟然开始迁都了!” “中州围绕江南市建立新天都!” “中州收回了所有外驻部队,千万军队围绕江南市建立绝密保护区!” “江南市上空有一层万米高空屏障!卫星完全侦察不到!” “中州江南到底隐藏了什么?” 三个月后,灵气复苏时代降临! 全球人类深陷水深火热,弱肉强食! 而此时白良于江南市公园中崛起,鞭劈八面蛮兽,以柳神之名抵抗四方兽王,甚至硬撼兽皇! 这次,换他来守护中州族人! 柳神庇护之下,其余国家人类还在四处躲避蛮兽之时,中州族人正在不断诞生一尊尊神!美女别跑呀! 落魄单身狗---林枫内心抓狂。 《人生游戏》? 你,这是个什么样的游戏软件呀? 魔幻! 令人不敢想象,可这一切正诡异地发生着…… 老天爷哪!这个世界到底怎么了? 世人震惊地看着这个变幻莫测的世界,眼里满是恐惧…… 红芒! 满眼是红芒! 这个世界有儒,有道,有魔,有鬼,有佛…… 儒道分六脉,曰礼乐射御书数。 礼,学天地之礼法,参不朽之法则,一行定万古。 乐,听五音十二律,奏传世之妙音,一曲动星辰。 射,举长矢射天狼,杀冒犯天威者,一箭破寰宇。 御,修一口浩然气,御令天地鬼神,一语定乾坤。 书,写惊世之文墨,绘四海之丹青,一笔镇山河。 数,算天地之玄妙,衍众生之棋局,一子败苍穹。谁说修仙一定是人,谁说冷血不适合修仙,白蛇凭刻苦努力不断升级修炼只因我来自妖界从而无法离开妖界应为整个人界都在排斥妖界,给妖族套上邪恶,无恶不作,乱杀无辜的妖界之人。 可人还有好坏之分更何况妖界了。 魔魇妖帝只因踏入人界被人界十位至仙和凤族联手围杀,他们的理由是魔魇乱杀无辜取之精血来提升修为。 却不知真相是他们害怕自己的地位受到威胁才出此下策,人是他们杀的,现场也是他们安排的,只因我来自妖族,只因他们是所谓的正道? 我魔魇不服,为何为何为何........【无毒+不圣母+不送女】 宁凡穿越仙侠世界,觉醒分身养成系统。 开局创建四大分身。 只要把分身培养成大佬,他就能获得奖励。 分身的实力越强,奖励就越丰厚。 于是... 太上宗:我宗道子先天道体,有大帝之姿。 宁凡:对不起,他是我的分身。 紫斗仙宗:我宗圣子摘草可斩尽日月星辰。 宁凡:对不起,他也是我分身。 合欢宗:我宗圣女总该不是你的分身了吧! 宁凡:对不起,她是… 罗刹魔宗:除了这句你还能说点其他的吗? 宁凡:其实你们宗主… … 异族女帝:人族的大佬都是同一个人?笑死朕了! 宁凡:你笑啥?你刚过门的相公,也是我的分身。 异族女帝:???狗贼,啥也别说了,拔刀吧!古神大陆自诞生以来便流传着一个传说,命运之门会在一个时代结束时降临,得见命运之门者,可以登临神境,进入命运之门者,可获永生。 …… 杨凡天生道骨,却被家主算计和爱人偷袭,落了个修为全失,道骨被夺的下场,正当奄奄一息时,遇到了曾经见过命运之门的鬼圣阴无虚,并夺了对方的一身机缘…… 境界划分:炼体、苦海、神宫、仙台、破虚、同体、大圣、大帝、半神、神……
网络安全宣传周座牌 网络安全 考研 信息安全培训课程体系 杭州网站建设公司联系方式 h5制作企业网站有哪些优势 南京本地网站建设 金融行业 信息安全培训 cc技术 信息安全 网络安全 威胁 网站后台添加内容网页不显示网站建设教程浩森宇特 人际关系不好的原因分析【www.richdady.cn】 家庭关系的和谐共建咨询【www.richdady.cn】 财运不佳的财富增长【www.richdady.cn】 人际关系不好咨询【www.richdady.cn】 耳鸣的案例分享咨询【www.richdady.cn】 与老公前世的记忆解析【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 耳鸣的原因及治疗方法咨询【www.richdady.cn】√转ihbwel 前世今生的故事有哪些案例?【σσЗ8З55О88О√转ihbwel 为什么过世的前世缘分咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世老婆的识别方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世缘份的修行建议咨询【微:qq383550880 】√转ihbwel 外灵干扰的前世故事【企鹅383550880】√转ihbwel 改善亲子关系的技巧咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 亲子关系的家庭氛围如何营造?咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 财运不佳的案例分享【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 财运不佳的投资建议威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世今生的因果关系【σσЗ8З55О88О√转ihbwel 意外的心理调适【σσЗ8З55О88О√转ihbwel 纠纷的预防措施咨询【www.richdady.cn】√转ihbwel 强迫症咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 电子商务网站建设 网络安全监测手段 网络安全审查 俄罗斯 企业信息安全问题 家里营销电话 网络营销系统的建设 安徽网站定制 中国信息安全小组成员,-1 新闻类营销 滨州建网站 网络营销外包价格 网络安全 考研 网站设计报价 工作室网站模板 网络安全敏感 罗马尼亚 营销调研 夏玉明 信息安全 优营销项目案例 xctf网络安全 萝岗网站建设 网站图片尺寸 智能网联 信息安全,-1 服务器信息安全 规范 解释网络营销服务 医院微营销 上海众人网络信息安全 网络安全渗透技术培训班2015 wap网站设计 h5制作企业网站有哪些优势 想做一个网站 网站推广营销 中国信息安全排名 国家领导人信息安全 昆明做企业网站多少钱 银行信息安全演讲,-1 网络安全渗透技术培训班2015 信息安全保障 认证 网络营销运作 优营销项目案例 2017网络安全年会cert网络安全 魔力象限 嘉兴网站优化 微博营销近期运营方案 萝岗网站建设 电子商务网站建设 台州网站设计 解放路 台州网站设计 解放路 搜索引擎营销如何使用 网络营销自学考试科目 2017网络安全年会cert网络安全 魔力象限 如何让网站收录 网络营销托管服务商 网络营销研究的范畴 淘宝网店网络营销策划 临沂在线上网站建设 网络安全专利 国内信息安全的法律法主要有哪些 想做一个网站 【宁波网络营销】就找龙宇网络 北大网络安全学院 自己创造网站平台 网络安全监测手段 网络信息安全保险 广告营销技术sem 网络安全实验平台 金融行业 信息安全培训 信息安全奖 致辞 xctf网络安全 营销类的公众号名称 深圳网站建设迅美 天蓝色网站 上海众人网络信息安全 中国信息安全排名 夏玉明 信息安全 网站设计遇到难题 营销资源的有效利用 网络对营销策略的影响 网络带营销 网络带营销 临沂在线上网站建设 信息安全漏洞还原方法 南京本地网站建设 操作系统信息安全 网络安全实例分析 衡水网站建设供应商 如何预防网络安全威胁? 服务器信息安全 规范 广州h5设计网站公司 网络安全资讯网 网络与信息安全体系营销是企业 关于检查网络安全的app 美发营销型网站 家里营销电话 网络营销系统的建设 解释网络营销服务 网络安全 威胁 双线网站 迪普网络安全 营销调研的过程北京高端网站制作 信息安全工作组 企业信息安全问题 网络安全审查 俄罗斯 医院微营销 番禺做网站 网络安全专利 网络营销传播渠道 中国信息安全网组长 目前网络安全市场 零基础学网络安全 网站推广营销 上海众人网络信息安全 双线网站 429网络安全日2017 新网站建设平台 信息安全培训课程体系 国家推进网络安全什么服务体系建设 设计公司网站 超实用网站 网络安全渗透技术培训班2015 公共无线网络安全吗 天蓝色网站 信息安全业务规划 互联网整合营销传播 江门网站建设 摩拜单车营销策划书 营销调研的过程北京高端网站制作 湛江有帮公司做网站 网络安全监测手段 信息安全产品与方案 菏泽网站推广 微信营销的几种模式 信息安全思维导图 网络安全宣传周的内容 网络安全新技术 信息安全工作组 网站设计报价