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

<a class="close" href="https://pdk.yaonuan.cn/">&times;</a>
龙岩网站建设公司通信网络安全专业委员会网络营销 (第5版)网络营销公司干嘛的学网络营销的学校传统网站和手机网站的区别是什么意思大连信息安全公司南昌市做网站的公司郴州网站建设公司布吉建网站网站推广营销易钊意外穿越到了一个人与鬼怪生存的世界,在这里人和鬼怪对立, 而易钊却意外获得了阎王送赠的物理驱鬼系统,从此成为了这个世界的王者。自凡人之流,窥仙人之梦,走修仙之道,得仙人之果,终俯仰天地之间,逍遥红尘世间。这是一场关于魔法,名为永恒的圣战! 那夜,恶魔如天使般降临,身为魔王却为少女规划出一条救世之路。 魔法少女不一定身穿粉色洛丽塔套裙、手持心形魔杖,她也可能身披黑色羽甲、手握战矛与敌人贴脸输出。 你问魔法? 噢!她用来防御。 一失意大学生,因救落水女孩。不慎就义,因一玉佩穿越修真世界,成为世家公子。因本家族仇怨,仇家联合邪派三派围攻。 使老祖允命,惨朝灭门后,只有沈浩,在垂危之际。 得玉佩保护得活一命,从此沦为乞丐。 从一名小乞丐,在玉佩帮助下修炼成长,武功修成,便为家族报仇血恨。 这时玉佩异动,有股魂力。在沈浩识海相见。并告知此来目的。30万年前,有上界流寇。名为异族,流串此界,以人为食触犯天规。此乃四维生物。 来此世肆意横行,无人可挡。上界动怒,本尊带队。从七纬来此,对异族进行打击。终被消灭殆尽。剩少部躲于地下,才使此界得以繁衍。30万年后,发现异族利用灵魂力,控制三维世界人类高层,屠杀人族。 七纬至尊分魂下界。投胎转世便是沈浩,历经艰难和不尽坎坷。使沈浩了解三维源头,及空间宇宙间纬度。 以及每个生命存在条件。 明悟后边奋发修行,最终消灭所有异族。灵魂圆满,重回高维,找到了高我。达到大圆满境界。 成为了万界之主。 班里的美少女转校生告诉我,我们已经被卷入了一场狼人杀游戏当中,随时会死? 可是......为什么我的狼人杀,画风不一样? 深夜,无人居住的房间里传出了诡异的声音, 黑暗的海洋馆深处传来了阵阵婴儿的啼哭声, 桃花盛开的小村庄在黑夜里露出了血色的獠牙...... 我能不玩了吗......从前有一座大陆,叫圣洛大陆。 大陆之上有一个域,叫南山域。 南山域有个宗门,叫仙痕剑宗。 仙痕剑宗之中有一位大师兄,叫君清尘,他似乎有亿点点强,而他的故事也是从此开始。孤烟灼,大漠凉, 千绝弃吾伤,无人伴身旁。 万物若寒光,无处暖心房。 纵有心头怀热血, 不抵寒夜浸魂霜。从梦中苏醒,游柏发现自己穿越到了《游戏王》的世界! 稀有卡什么的都是浮云! 唯有十年牌龄才是王道! 赢下各大顶尖赛事的冠军!登上决斗者的荣耀最高峰!成为海马濑人一辈子都想战胜的对手! “我!游柏!十年牌佬!从今天起将君临《游戏王》!”少年张玄某一天偶获异能从此改变了他平凡的人生. 能够轻易撕裂敌人的利爪 一拳轰爆坦克的能量锤 自由翱翔在天空的滑翔 轻易摧毁飞机的鞭拳头 ...各种异能让他成就非凡! 让我们来看张玄如何收服众美女完美逆袭梁凡穿越到被中洲国国丈废弃后扔到边疆的皇子身上,正赶上国丈买通马匪前来杀自己,危急时刻梁凡获得异宝地精之力,反杀马匪。 梁凡投入军中,一步步崛起,待回京欲要表明身份,夺回大权时,却生异变,身受重伤,被烈阳、烈一一父女二人救回极北狼族疗伤。 极北冰寒之地潜伏的狼魂,慢慢苏醒··· 莽莽戈壁滩上狼烟四起的凶兽战场··· 危机四伏的丛林,神秘的古巫族,奇闻中的东海修仙族··· 我本良善,奈何凶兽环伺左右! 准备好,凡爷来了!
企业营销信息平台构建 浙江省网络安全评测中心 南通企业网站制作 网络安全需要检测什么意思 国家开放大学信息安全学院 河北网站建设推广 最大的网络营销公司 企业网络安全部门 bctf百度杯网络安全技术对抗赛 网站建设:中企动力 耳鸣的前世因果【www.richdady.cn】 前世缘份的再次相遇咨询【www.richdady.cn】 纠纷的原因分析【www.richdady.cn】 如何改善精神不振的状态咨询【www.richdady.cn】 老公家暴的原因分析咨询【www.richdady.cn】 升迁障碍的自我提升【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 感情纠纷的情感沟通方法有哪些?威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 心特别累的案例分享咨询【企鹅383550880】√转ihbwel 脑部不清晰的案例分享【企鹅383550880】√转ihbwel 缺心眼的前世记忆【微:qq383550880 】√转ihbwel 脑部不清晰的心理调适【微:qq383550880 】√转ihbwel 家宅磁场的调整方法【微:qq383550880 】√转ihbwel 老公家暴的应对方法【σσЗ8З55О88О√转ihbwel 去世的母亲的前世修行【www.richdady.cn】√转ihbwel 灵性成长工作坊咨询【σσЗ8З55О88О√转ihbwel 通灵与心理学结合咨询咨询【企鹅383550880】√转ihbwel 前世缘份的重逢故事威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世缘份咨询【www.richdady.cn】√转ihbwel 莫名其妙感伤的前世因果咨询【www.richdady.cn】√转ihbwel 与女友前世咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 网络营销公司干嘛的 信息安全保护管理办法 郴州网站建设公司布吉建网站 我国网络安全情况汇报 信息安全领域的公司 网络安全应急处置流程图q群营销 网络安全组织领导 网络安全技术竞赛 企业网站管理 广西 网站开发 在线教育营销策划方案 营销系统的优势 网络安全迫与破 对网络营销课程的认识 营销网站优点 facebook营销推广范本 瓦房店营销课程培训班 信息安全保护管理办法 郴州网站建设公司布吉建网站 我国网络安全情况汇报 信息安全领域的公司 网络安全应急处置流程图q群营销 网络安全组织领导 网络安全技术竞赛 企业网站管理 广西 网站开发 在线教育营销策划方案 营销系统的优势 网络安全迫与破 对网络营销课程的认识 辽源网站建设 建立网站的作用 b2b商场网站建设 企业网站维护 四川网络安全公司 营销是什么意思 互联网软文营销案例 网络安全需要检测什么意思 河北网站建设推广 网络安全合格证变更 网站icp备案 bctf百度杯网络安全技术对抗赛 营销是 网络信息安全预警 大良营销网站建设服务 大良营销网站建设服务 网站建设 宁夏 网络安全名字 专业的网络营销首选公司哪家好 四川网络安全公司 网络安全培训实施意见 构建网络安全防护体系 国内网站制作欣赏 网络安全法 条款解析 发生信息安全紧急事件 网站制作设计 信息安全等级测评标准 网络安全合格证变更 电商平台网络营销方案 营销是 荆州做网站 辽源网站建设 网络安全监测与大数据 江苏最新网络安全 idc网站建设 中国网络安全培训平台 信息安全人员等级划分 信息安全风险评估模板 企业网站维护 企业信息安全保障体系 上海企业网站设计公司电话 关于网络安全的常识 互联网营销和传统营销的区别是什么 信息安全人员等级划分 网站背景音乐 网络营销与消费心理 深圳制作公司网站 微信网络安全未通过 网络安全法 条款解析 网络营销案例工具 企业网络安全部门 衡水网站建设供应商 旅游网站案例 联创营销班 百度验证网站 河南省第二届信息安全 贵州网站建设 江苏网络安全事件 网络安全的基本目标包括 互联网+信息安全,-1群发营销 杭州网站制 建立网站的作用 网络安全沙龙 发生信息安全紧急事件 网络信息安全专题教育 最大的网络营销公司 中国网络安全培训平台 网络安全对抗和研究 合肥做网站的 营销系统的优势 国内网站主机 临汾网站建设 互联网软文营销案例 营销型网站案例 传统网站和手机网站的区别是什么意思 合肥做网站的 网络安全行业企业 营销网站优点 信息安全风险评估模板 iso27001国际信息安全是如何描述的 企业营销信息平台构建 信息安全等级测评标准 桂林做手机网站设计 聚美优品营销ppt 清华大学 网络安全 我国网络安全情况汇报 网站图片尺寸 国内网站制作欣赏 如何建立自己的网站 b2b商场网站建设 网络安全名字 社会工程学 网络安全 西安网站制作工作室 珠海 旅游 网站建设 成都网络营销公司 贵州网站建设 手机版网站设计风格 搜索引擎营销理论基础 网络安全对抗和研究 网络营销理论首次提出 信息产业信息安全测评中心 网络安全战略不仅是 路由器网络安全设置 新媒体营销外包公司 顺德网站建设市场