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

<a class="close" href="https://ocw.5491.com.cn/">&times;</a>
国家信息安全办公室2015首都网络安全日信息安全竞赛入门陕西网络安全监察大队电商营销公司做什么北京大学信息安全学院信息安全风险评估涉及( )影响和脆弱性三者之间的可能性评估网络安全攻击行为分析营销的类别咨询手机网站建设平台 三起连续的人口失踪案,加上突发的床底藏尸案,让刑侦队长沈杰手忙脚乱。男主聂一仑用他专长的美术学和心理学,以及法医女主宁无瑕的帮助下,藏尸案得以告破。 可人口失踪数还在增加,更诡异的是,接踵而来的大街割喉案、静脉投毒案等多起命案,似乎都与藏尸案有些关联。随着逐一的侦查,发现身边的人才是最可怕的。 而且,最终的矛头还指向了四年前的一起案件……你相信吗,每一个让你内心悸动过的她/他,都会在你心里埋下一粒种子,种子可能不会接着开花,也不会渐渐结果,但它确确实实就埋在那儿,它是存在着的,在等待着缘份重新来过的时候,破土而生,熠熠生辉。一介神偷无意落入百年阴谋大局,在阴谋中成长,站在世界之巅。未婚妻的背叛、父亲的离奇死亡、母亲的神秘失踪! 背负着沉重包袱的沈夜白,毅然走向那十死九生的屠邪之路。 在这弱肉强食,渐渐失去秩序的修炼世界,他闯荡坠天神域、脚踏万千邪族、在天地战场纵横杀戮…… 当他驻足停歇、放眼天地,才发现自己早已站在了这个世界的绝顶之巅!传说中的神话人物是否存在,如果存在,他们现在又在哪里?如果不存在,那我又是谁?行走在黑夜中,谜团,不断地被解开,又不断的出现,真相最终展现在眼前时,竟那么悲壮。一戟划破天,六道也轮回一个二十一世纪的屌丝,刚完成一单新闻,猝死出租屋,还不知道有没有人收尸就来到了楚国,一个有着宋的憋屈明的铁血的平行空间还是异世界?总之不小心成了异性王唯一的子嗣,可能出场姿势不好,被人用锤子打出了的。周边都是贼兵蛮子鞑子,好在有后世的天线一条,不至于被古人玩死成为最惨穿越者,一路泡妞打蛮子,没事就种种地!当然是真的种地。二十一世纪的科研天才李承风穿越大唐,居然变成了李世民的六岁儿子? ??天赐神级熊孩子系统,李承风揪李世民的胡子,开局狂怼房玄龄和杜如晦,他们对此却又无可奈何。 ??李承风利用自己的天才科学知识,一招南水北调解决天灾,研发出来的杂交水稻可亩产2000斤。 ??灭突厥,降伏高句丽,李承风六岁就被赐封为大唐镇国神王。 ??可谓莫愁前路无知己,天下谁人不识君?古墓伴生,他们说我是天降灾星,终南山续命,我用十年时间成玄门魁首,而我的一生,却从那纸婚书开始……人们死后会进入到一个名叫“罪恶国度”的世界, 也就是生前人们口中的地狱,赎生前所犯下的种种罪过,在这个世界里,连善良也是一种罪过,那么你觉得,在这个世界里你的罪名会是什么呢?
南城微网站建设 开展网络安全工作 搜索引擎营销是一种 网络信息安全 规范,-1 昆明网站营销 网络安全展牌 国家信息安全等级保护工作协调小组办公室推荐测评机构名单 中国信息安全法研究中心 淄博网站设计 网络安全播报 与男友前世的因果关系咨询【www.richdady.cn】 婴灵的超度与心灵净化【www.richdady.cn】 亲子关系的心理建设方法有哪些?咨询【www.richdady.cn】 与男友前世的故事分析【www.richdady.cn】 通灵与心理学结合咨询咨询【www.richdady.cn】 事业不顺的原因分析【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 老公家暴的前世因果咨询【www.richdady.cn】√转ihbwel 迟缓儿的自我提升咨询【企鹅383550880】√转ihbwel 前世今生的轮回转世威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 官司的前世因果【企鹅383550880】√转ihbwel 去世的父亲的前世记忆【企鹅383550880】√转ihbwel 化解婴灵的最佳时间咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 婚姻生活不顺的沟通技巧咨询【企鹅383550880】√转ihbwel 孩子学习不好的环境影响咨询【σσЗ8З55О88О√转ihbwel 升迁障碍的职场突破威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 升迁障碍的职场瓶颈【www.richdady.cn】√转ihbwel 脑部不清晰的解决方法【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 强迫症的症状与诊断咨询【www.richdady.cn】√转ihbwel 婚姻生活不顺的前世因果咨询【www.richdady.cn】√转ihbwel 心慌胸闷头晕的原因分析咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 建网站代理商 营销的意义 网络安全检测方法 营销的特征 网站提供商 网络安全 实施计划 办公环境安全 信息安全 网络安全主要涉及信息存储安全信息传输安全网络应用安全等3个方面 2017网络安全企业 创手机网站 信息安全等级测评工作 中国网络安全大事记 营销型网站推广中国信息安全测评中心 信息安全服务资质 网站提供商 网络安全准入方案 营销方案班 广警转网络安全 在网站后台上传的图片为什么传到网站上后会变形应该怎么修改 安阳网站制作 昆明网站营销 网站建设公司 青岛网站推广 软营销例子 网络安全主要涉及信息存储安全信息传输安全网络应用安全等3个方面 2017网络安全企业 创手机网站 信息安全等级测评工作 中国网络安全大事记 营销型网站推广中国信息安全测评中心 信息安全服务资质 网站提供商 网络安全最新技术 兰州网站建设报价 信息安全等级保护制度的基本内容 信息安全 风险 合规 全国专业信息安全服务资质公司,-1 信息安全等级测评工作 企业博客营销的劣势 战略性网络营销策划书 广州网站优化公司 营销团购 中国网络安全大事记 网络营销的价值是什么意思 信息安全大会2017 龙岗做网站 网站速度 国际信息安全专家,-1 国际信息安全专家,-1 南城微网站建设 中山企业网站建设公司 国家网络安全相关政策 网络安全攻击 国家信息安全保护等级 福州专业网站建设 安阳网站制作 网络安全体 国内信息安全管理标准,-1 杀软 网络安全 蛋糕店如何做饥饿营销策略 金融行业信息系统信息安全等级保护测评指南,-1 网络安全.ssl信息过滤ddos 龙岗做网站 昆明网站营销 沙盒技术 信息安全 2017 淄博网站设计 2017信息安全大会 公安部信息安全保密法 湘潭网站建设 营销的意义 美国网络安全法 兰州网站建设报价 建网站的公司哪家好 网络营销实战课程建议 网络信息安全审查 电商营销公司做什么 邮箱营销软件哪个好用吗 美橙互联旗下网站 青岛网站推广 信息安全标准 信息安全标准 网络安全体 医疗网络营销 网络安全技术吧 购物类网站建设方案 分析网络营销环境分析 陕西信息网络安全协会 网站的不同类珠海移动网站建设公司 怎样开展内容营销 陕西网络安全监察大队 信息安全计划 如何建自己的个人网站 女孩子学网络营销 学网络安全技术到 网络安全主要涉及信息存储安全信息传输安全网络应用安全等3个方面 厦门网站建设公司 小程序在建网站吗? 中国信息安全大会 软营销例子 信息安全的基本目标 网络安全检测方法 武汉网站建设公司 网络安全防火墙 网站优化推广公司 东莞全网营销网络推广方案 国家信息安全部部长 国内信息安全管理标准,-1 网站蓝色 武汉网站建设公司 知名网站建设 创手机网站 美国网络安全法 石家庄网站营销 怎样开展内容营销 蛋糕店如何做饥饿营销策略 做网站公司广州 客户型网站 哈尔滨网络科技公司做网站 信息安全等级测评工作 网站建设未来发展前景 邢台网站建设 中国信息安全法研究中心 web编程网络安全 计算机网络安全评价 ui的含义网站建设 湘潭网站建设 网站优化推广公司 百科词条营销 网络营销的历史起源网络安全 移动防御 星巴克和微信营销 虎门做网站 网络安全检测方法 石家庄市制作网站公司 陕西信息网络安全协会 营销型网站推广中国信息安全测评中心 信息安全服务资质 上海网站建设联系电 个人注册网站.com