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

<a class="close" href="https://uglh.xeni.cn/">&times;</a>
无纸化营销网络安全专项治理报告网络安全 国防信息安全技术云操作系统安全检验要求国内 信息安全网站如何推广许可营销工具有哪些?网站信息安全等级测评保护网络安全专家建设牌官方网站生活是如此的现实骨感,而不经意间进入到了异界却成为我打开生活的一扇门。“陛下!此行还请万分珍重,末将年迈、大限将至,还能为陛下镇守国门十年!还请陛下十年之内,学满归来!承继大统、振兴神夏,李衮百拜!” 叶无修穿越到玄幻世界,成为神夏国皇帝,身负救国重任,却资质平平! 直到一天,系统觉醒,获得查看万物的词条! 【姓名】:叶无修 【年龄】:17 【黑色煞运:英年早逝】:一月后没有资格参与内门考核,颜面扫地,被逐出宗门,返回神夏国,老将长叹数声而死,诸国侵袭,神夏国灭,死于乱刀之中,享年十八岁! 【白色气运:无能国君】:明日失败最后一次,心灰意冷,慷慨送出神夏国宝物四品炼丹炉,收获称号‘无能国君’! 直到此时,叶无修才有所觉悟! 他竟然成了前一世看过无数的狗血套路小说的龙套?秦琪穿越了,别人带着王霸之气穿越,秦琪则带着一个仓库穿越到三国。 刚入三国,遇上名将高顺、绝世美人貂蝉。 收下! 往返于三国与现代,不断赚取小钱钱。风生水起之际,漂亮国盯上,一怒之下,跑到彼岸肆意掠夺……。 秦琪被一个个诸侯盯上,全不怀好意、肆意敲诈勒索,甚至要将其逮住……。 无奈下,只好走上争霸之路 从此,三国多了个狠人,专抢美人、收名将、名士的诸侯。 正义也许会迟到,但是绝对不会缺席! 男人都要学会自己长大,面对所有荆棘坎坷,只有奋不顾身,勇往直前!能拯救你的,只有你自己! 抖音同号:秋风听雨新时间简史:人,人口,人口时代的变迁,未来触手可及。生于浮尘,死于无骨, 流血流汗不流泪,掉皮断骨不低首好友离奇失踪,奇怪的链接,莫名被卷入的神秘世界… 宋昔闻上一秒还是普普通通的高中生,下一秒就得想办法在神鬼世界里存活下去。 变强!变强!保护要保护的人!回到真正的正常的世界! [本人严重中二病患者,喜欢超自然事件!经常幻想自己有超能力,所以文中可能有大量中二和恐怖情节!介意者慎入!] 万年前,无敌于世间的剑尊惨败在一位无名刀客的手中。 此后剑道衰微,剑修凋零。 直到,万年后剑尊之徒许安然自沉睡中苏醒,沉寂已久的剑道才重焕生机。 面对这个物是人非的世界,许安然所能依仗的唯有手中残剑。 为重振剑道,许安然将用手中的剑荡尽诸敌,淋浴神血,登峰造极! 他要向世人证明,剑才是兵中帝王! 一句话立意:主角受来到意外死亡游戏中....发现这里根本回不去.. . 只能通过开始游戏来不断积累游戏经验“爷就不信了,爷回不去!” 其实来到这游戏最好的办法就是适应它,不放弃。 简介 : 宋期年在吃完米线的时候无意间看到桌子上的广告单上绚丽的大字:&amp;quot;你有兴趣参加死亡游戏吗本书可操作空间极大,你喜欢看什么类型的可以告诉我,后面随时可以安排上,或者你的经历等等都可以润色后成为章节
深圳企业营销培训机构 可信网络安全 医院全网营销策划 鹤壁网站制作 便宜的网站设计 品牌网络营销服务商 公众号营销有哪些策略 搜狐网络营销中心 信息安全国家标准目录 德宏网站建设公司 冤亲债主干扰的预防措施咨询【www.richdady.cn】 与男友前世的识别方法【www.richdady.cn】 如何识别冤亲债主【www.richdady.cn】 事业不顺的职场提升【www.richdady.cn】 前世今生的咨询方式咨询【www.richdady.cn】 大龄剩女的婚恋建议有哪些?【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世今生的故事有哪些案例?【σσЗ8З55О88О√转ihbwel 纠纷的自我保护咨询【企鹅383550880】√转ihbwel 脑部不清晰咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 缺心眼的沟通技巧咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 冤亲债主对生活的影响【www.richdady.cn】√转ihbwel 家庭关系的相处之道咨询【微:qq383550880 】√转ihbwel 事业不顺的心态如何调整?【企鹅383550880】√转ihbwel 前世缘份的前世解析【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 灵魂化解的具体步骤【www.richdady.cn】√转ihbwel 儿子抑郁症的康复训练咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 老公家暴的应对方法【微:qq383550880 】√转ihbwel 家庭关系的相处之道有哪些?咨询【www.richdady.cn】√转ihbwel 人际关系不好时的心理调适咨询【企鹅383550880】√转ihbwel 无形干扰的前世故事咨询【企鹅383550880】√转ihbwel 信息安全技术基础 企业官网响应式网站 国内 信息安全 微博营销的原则 德宏网站建设公司 信息安全认证标准,-1 网络安全通报实行 中国信息安全测评中心属于 新媒体企业微信营销成功案例 乾冠信息安全 营销推广方式有哪 可信网络安全 建游戏网站 营销的网站 外贸网络营销考题 国家网络安全局副局长 信息安全领域 cia 让网站降权 鹤壁网站制作 成都网站建设市场分析 搜狐网络营销中心 银川怎么做网站 网络安全中的黑客攻击技术 平台信息安全管理办法 网络信息安全组成员 网站定制与模板开发 网络安全 国防 网站收录多少才有排名 淮北网站制作 网站建设排版页面 网络安全知识ppt 番禺高端网站建设公司 个人备案网站能用公司 建设牌官方网站 全球十大信息安全公司 银川怎么做网站 网络安全培训意义 整合营销平台 电子网站建设 国内 信息安全 云南制作网站的公司 他人委托我做网站 建游戏网站 门户网站建设 信息安全国家标准目录 大同做网站 网络综艺营销策划 杭州网站制作外包 计算机网络安全资料 如何宣传网络安全 北京网络安全与维护培训班 网络信息安全博览会 参加,-1 网站收录多少才有排名 信息安全公司起名 无线网络安全设置方法 建立http网站 济南免费做网站 网络安全法条款导读 便宜的网站设计 昆明购物网站建设 厦门网站建设的公司哪家好 企业营销型网站推广 平台信息安全管理办法 销售观念的营销手段是 网络营销的技巧是什么网站备案教程 医院全网营销策划 保护信息安全的技术和手段有哪些,-1 网站信息安全等级测评保护 信息安全厂商 合肥网站推广 网站制作 武汉 小程序营销案例 乾冠信息安全 网站制作 武汉 网络安全法条款导读 公安部网络安全监察 电商营销课程培训课程 网站加外链 武汉网站建设 手机移动端网站 优化:高效的seo社交媒体和内容整合营销实践及案例 pdf 信息安全技术云操作系统安全检验要求 宁波信息安全 成都网站建设市场分析 全国计算机信息安全技术 网络营销应用知识 全球信息安全认证 第七届信息安全漏洞分析与风险评估大会 镇江网站seo 国内最好的信息安全公司 动态页网站 可信网络安全 建设牌官方网站 济南网站制作设计公司 营销社会环境分析 网站如何推广 网络安全法 研发安全 高端网站建设 郑州微网站建设 营销职能 政府机关网站制作模板 网络安全推荐 网络安全产品谁的好 网络安全事件处理报告 自由型网站 计算机网络安全资料 网站如何推广 信息安全师国家职业 桥南做网站 网络安全动漫 淮北网站制作 企业官网响应式网站 长春作网站 常见的营销手法 新媒体企业微信营销成功案例 外贸网站运营 信息安全科普 ppt 品牌网络营销服务商 网站建设的 全聚德营销 网络安全专项治理报告 企业互联网营销的策略 佳木斯网站建设 网络安全产品谁的好 网络营销出来有用没 济南免费做网站 上海平台网站建设公司 网站建设颜色注意事项 信息安全事件通报流程 建设牌官方网站 网络安全推荐 昆明网站开发 网络安全防范技术美国网络安全攻防 2013年我国互联网网络安全态势综述 这样建立自己的网站