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

<a class="close" href="https://eo.nonghei.com.cn/">&times;</a>
网络营销职能关系商务网站制作公司2014信息安全大赛郑州网站设计专家杭州网络营销西安市政府网站三只松鼠 动漫营销太原市做网站国内网络安全公司信息安全活动方案,-1网络营销的学费办理三级信息安全等级保护,-1网站设计步骤网络安全态势感知 ppt福州网站建设费用广州 网站制网站建设的售后昆明网络营销推广通信网络安全防护和维修的特点什么创网站电商网站建设福州网站建设费用手机网络营销存在问题网络营销职能关系网络营销师考试国家计算机网络与信息安全单位对信息安全等级保护工作网络整合营销的特性网络安全态势感知 ppt大型网站的设计cisp培训ppt(中国信息安全产品测评认证中心提供)少年血脉被夺,修为尽废,家族中人落井下石。至尊血脉觉醒,神秘小鼎激活,重塑一身体魄,人挡杀人,神挡弑神!修行之路逆水行舟,世间诸事实力为尊,至尊血脉摧枯拉朽!万古独断,独镇深渊,万界无敌,不败神话! 吴缺穿越平行世界。   这个世界元宇宙技术完全成熟,并诞生了一款名为《文明》的游戏。 人人都可以进入文明世界,成为一名领主。   招募将领,发育兵种,收获资源,攻城略地!   文明世界里所获得的一切都可以带到现实中。 吴缺在进入文明世界时获得了万物增幅系统,通过消耗增幅点数,可以获得华夏历史上的所有任务。   花木兰:“我将永远侍奉您,我的领主,吴缺大人!”   赵云:“我常山赵子龙的所信奉的一切,都因吴缺大人而生!”   李元霸:“跟着我吴缺大哥,才有饭吃!”   诸葛亮:“亮毕生心愿,唯辅佐吴缺大人!” …… 在如此之多的历史人物的辅佐下,吴缺超越同期领主,追赶往期强者,最终身边强者、美女如云,屹立在文明世界的顶峰!你怎么什么都懂? 我看着像懂吗? 万能公式,果然是万能的 风水相师,山精鬼怪 我有系统,欲证长生道本作为《驱魂录》的前传,主要以玄冥的视角来讲述那六年里发生的一些奇闻怪事。你准备好了吗?故事即将开始......一代圣魂降临,凭废躯重返巅峰,修五逆破障称神我,陈益,带着系统穿越电影世界,。。。。本作品的名字叫做小岛:螳螂效应。作为螳螂效应的名词解释本作品会一一阐述。一艘由中国港口通往南极的旅游游轮在太平洋上向南极洲缓缓驶去。船上有面临离婚舆论压力的女明星,还有精通地理学海洋气候的专家地理学教授,还有高智商表面上看似善良的心理学教授,还有因学业失败和前女友离开沮丧的小帅。四个人在邮轮中彼此相互了解。可是,天有不测风云。游轮由于风暴影响而不得不更改航线。然而一场海难让几个人紧紧的贴在了一起。小帅女明星地理学教授心理学教授四个幸存者前往了孤岛布韦岛。在那里每个人将展现内心最黑暗的一面,伴随着岛上一个一个人的死去,巨大的阴谋浮出水面……在强者的面前,你弱小便是罪,阻碍你成长、强大的是什么?朋友?家人?恋人?毫无意义的自尊心? 力量!力量!我要无敌的力量!能活到最后!能胜利的力量! 无论过程如何,不论牺牲多少,只要最后的赢家是我,那就什么都无所谓了。 穿越后的钟文被一个小萝莉捡回了只有女弟子的飘花宫; 这个世界最顶尖的功法、灵技、知识统统来自上古; 于是,研究看不懂的上古文字,成了时代的潮流、身份地位的象征; 偶然的一次机会,翻开一本由上古神文写成的书; 他惊讶地发现...... 东汉末年,汉室崩塌。 刘闲意外穿越到这乱世,开始一段传奇人生。 利用遥遥领先这个时代的知识,收名将,戏红颜,混的风生水起。 同时训练出一支傲视当世的铁血精锐。 刘姓为王,大浪淘沙。 待一切尘埃落定之后,一个完全不同的大汉帝国重新出现在了大地的东方。
营销网址 公司信息安全活动方案,-1 网站职能 信息安全最关键也是最薄弱 网络安全宣传周资料从社会层面信息安全 如何加强信息安全 重庆网络营销客户 中国网络营销市场分析 电商网站建设 广州 网站制 金融系统网络安全 南京信息安全测评中心,-1 美国信息安全法 关键词霸屏营销 如何加强信息安全 网站建设软件 网络营销环境特征 南京信息安全培训班 网站设计步骤 贵阳网站设计 网络营销推广职业规划 手机网络营销存在问题 国家信息安全技术中心 太原市做网站 信息安全相关证书 营销优化师 韶关网站建设 朝阳市网络安全公司 四川互联网营销公司有哪些 网络安全基础知识培训 17做网站广州 网站要素 cii 网络安全 internet 互联网与网络安全 如何加强信息安全 杭州网络营销 计算机网络安全 什么是sql注入 国家计算机网络与信息安全 网络安全的博士 国家信息安全技术中心 大型网站的设计 网站的营销方法 微信营销软件论坛网站 武汉网络安全反病毒 网络安全协议 原理 答案 深圳企业网站制作报价建设手机网站费用 上海做网站的公司官网 合肥专业做网站公司 国标 信息安全 2010年网络安全 杭州网络营销 营销网址 武汉网络安全反病毒 红酒网络营销策略 网络安全投诉 中国 外国 网络营销 华企立方网站 网络营销托管服务 网络营销的学费 信息安全 物理安全 计算机网络安全包括 国内网络安全 贵阳网站设计 大型网站的设计 单位对信息安全等级保护工作 北京信息安全评测中心 重庆网络营销客户 餐饮 网络营销工具 网络信息安全监理公司 专业网站优化制作公司 柳市做公司网站 美国信息安全法 信息安全技能培训 聊城网站建设招聘 什么创网站 信息安全专业企业 朝阳市网络安全公司 上海做网站的公司官网 国内网络安全50强 互联网与网络安全