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

<a class="close" href="https://hyc.mijiaju.cn/">&times;</a>
网络安全协会文件编号国家能源局 信息安全网站案例库龙口做网站美团网络营销河北网站建设推广信息安全包括信息的网络安全 实验信息安全管理三个要素网站建设论坛网络安全专项检查叶辰穿越到一个深渊邪魔入侵,危机四伏的高武世界。 所幸激活了‘神秘创造’系统,当所创造的神秘被这个世界的人所相信与认同,他就能够获得奖励。 只是这系统给的素材似乎有点不靠谱? 无奈叶辰只好发挥自己的不正经想象力,所创造出来的角色逐渐歪了画风。 开局创造比奇堡三大将,打造神秘组织! 而这只是梦的开始... 羊村战神懒大王。 卖火柴的灭世魔女。 阴间武将徐大宝。 ...... 当一位位存在踏入这片世界,叶辰所创造的神秘传说,逐渐的一步步成真,令世人所震惊! 蓦然回首, 不知不觉中,他竟然打造出了一方包罗万象的大世界! (简介无能,请看正文。) 在高校被混混欺负的王浩天只能忍气吞声。他唯一的乐趣就是在网游中大杀四方。 听说去年结束内侧的网游【无尽世界】正式上线,身为内测玩家的他再也不用唯唯诺诺了。 戴上8D头盔的他开始了网游神奇之旅。 【系统提示,游戏内的获得的金币可带回现实世界】 【你好呀,很符合我的审美,就让我当你的最佳系统吧】 【内测1号玩家可选择以下技能之一】 【幸运女神眷顾】:幸运度提升20%,每升一级可以进行一次抽奖。 【技能点之王】:技能点比普通玩家多出20点,且可以随意更改,后期等级越高,上限越高。 【打不死的小强】:血量越低防御力越高,死后可立即复活,不限次数。 【点石成金】:开局金币爆率提升100%,后期可提升。 【技能书槽位之王】:比正常玩家多出5个技能书槽位,且免费赠送一本SSS技能书。 【鬼影迷踪】:50%概率闪避对方攻击,每两秒触发一次,随等级变化而缩短 【女性克星】:女性玩家100% 不是?这最后一个技能是啥呀? 本书由《火宿c》与《背欺里》组成,可在章节中直接寻找两本小说。 火柴人的亿万事件,大篇分部,爱情、魔幻多条主线开局穿越红云,成了洪荒第一大冤种? 让位是不可能让位的,这辈子都不可能做好事了! 等等,你说什么? 我有系统! 只要做好事主动赠予对方灵宝功法,就能随机获得100到10万倍的暴击返还奖励? 对不起,我承认我刚刚大声了点。 我红云高风亮节,就喜欢做好事! “叮!恭喜宿主赠予准提蒲团一个,已触发万倍返还,奖励鸿蒙蒲团一个!” “叮!恭喜宿主赠予帝江九九散魄葫芦,奖励混沌葬天葫芦一个!” “叮!恭喜宿主赠予冥河老祖冥河胎盘,奖励血道胎盘一尊!” …… 在红云的义薄云天之下,整个洪荒势力都懵了。 鲲鹏:“不可能!红云道友高风亮节,怎么可能坑我!” 准提:“红云高义,堪比大道!我西方经此大劫,一定不是红云道友所为!” 三清:“我也不想怀疑红云道友,毕竟他给的实在是太多了啊!”欢迎来到第一年级! 这个学院会有许多不一样地方。例如拥有一只可以帮助战斗的精灵、”期末考试“是战斗排位赛等等。 这个学院也会有许多相同的地方。都有老师,打破了学校的东西都要赔偿,考试都会不及格等等。 那么现在,请收拾好心情。迎接新学期的开始吧!灵魂无意穿越到一名叫李斯的少年身上,不仅有着号称第一美女的未婚妻,还获得一个会吐神通种子的异兽,各种资源,美女,金钱如何选择,李斯:选择是小孩子的思想,而我是通通都要!别人穿越都是封侯拜相,为啥我穿越过来就只有半个小时的命? 还好有系统送了100亿两黄金! 花1两黄金就得1分钟寿命?这买卖划得来啊! 有什么事情,是用金元宝解决不了的? 1个金元宝解决不了,那就用100个、1000个! 一个落魄书生,靠着黄金开道,称霸天下的故事!世界有平行,道义有雷同。 “一樽浊酒,好生烈!”他畅怀一声后,猛然侧脸目视那股袭来之气,继而顺势抬起一脚,踢出了一道相迎的弧线。 顷刻间,两股力量碰撞出了一声脆响…… 冲击过后,这饮酒人腿间所束缚的一颗铜球,便脱身而落,滚到了身后的悬崖之下。 他不慌不忙,拍了拍方才被溅到身上的灰尘,又看了看手中被尘染的酒樽,庆幸地言道:“哼哼,尚好,酒已尽。” 而不远处也传来了另一个声音:“狂妄,峰有铁律,饮酒者惩。”本是千万富翁,却遭遇破产危机,结婚六年的妻子还送给我一顶大大的绿帽。 人生低谷,却无意间结识美女总裁。 为还自己清白,我重振昔日辉煌,不仅要手刃仇人,我还要让那些瞧不起我的人跪下来叫我爸爸。 人性是善是恶,争论千年无休止。 而我的故事就要从人性上开始说起…该不该玩游戏?网络游戏,手机游戏,各种单机游戏。游戏的世界你不懂,我也不懂! 爱玩游戏的欢迎进入。
深圳 网络营销 企业 网站推广的目的 龙口做网站 常州网站制作包括哪些 斗门网站建设 营销软件设计 个人适合建什么网站 无锡网站推广 开源网络安全软件 网站建设论坛 前世老婆的前世缘分【www.richdady.cn】 邪灵对人的危害咨询【www.richdady.cn】 儿子不读书的原因分析【www.richdady.cn】 婴灵的超度仪式如何进行?咨询【www.richdady.cn】 冤亲债主干扰的前世因果【www.richdady.cn】 冤亲债主干扰的表现咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 事业不顺的原因分析【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 脑部不清晰的原因分析【www.richdady.cn】√转ihbwel 官司的案例分享威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 孩子压力大的环境影响咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世因果化解方法【微:qq383550880 】√转ihbwel 为什么过世的前世解析【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 家庭关系的幸福指南有哪些?咨询【σσЗ8З55О88О√转ihbwel 什么原因意外的前世缘分【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 财运不佳的财富管理咨询【微:qq383550880 】√转ihbwel 事业不顺的应对策略【企鹅383550880】√转ihbwel 去世的父亲的前世案例【www.richdady.cn】√转ihbwel 大龄剩女的案例分享【www.richdady.cn】√转ihbwel 大龄剩女的幸福指南有哪些?【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 婴灵的安抚有哪些技巧?【www.richdady.cn】√转ihbwel 荆州做网站 信息安全案例库 深圳制作公司网站 智慧城市信息安全 长沙做网站价格 最好的网站模版 禅城区网站建设公司 网络营销文案事例 qq网络安全修复 网络安全事件应急预 搜索引擎营销五个步骤是什么 虚拟化网络安全技术 中国信息安全平台 qq网络安全修复 长沙微营销 网络信息安全部成员 上海网站维护 顺德网站建设市场 网站信息安全认证 商城 静态网站模板 国家网信网络安全应急 无锡网站推广 社交媒体营销英文 信息安全 国家 学院,-1 简约的网站 网站数据库制作 绵阳网站建设 信息安全总体方针和安全策略 星巴克的营销目标 静安区品牌网站建设 国家级信息安全测评 信息安全核心 制作网站 国家网络安全总局 专业网站建设公司 网络营销难不商务网站的网络安全 上海网站维护 网站建设公司平台 免费教育网站建设 山西全网营销服务商 辽源网站建设 信息安全等级保护备案表 小红书 营销玩法 信息安全技能大赛题目网站到期了 互联网热点营销 顺德网站建设市场 信息安全管理三个要素 营销 软件 sem整合营销哪里好 网络信息安全基础知识,-1 营销网页设计 手机微信一体网站建设 2017国家信息安全周主题,-1 智慧城市信息安全 信息安全等级保护备案表 网络安全 实验 个人适合建什么网站 中国广东手机网站建设 网络信息安全新方向 常州企业网站建设 美国国家信息安全保密总统令 译文 营销学堂 信息安全案例库 如何做好微信群营销方案 青岛营销推广公司 基于互联网环境与技术建立起来的数据库系统在网络营销中的案例 广州市网站网页制作公司 青岛营销推广公司 中国广东手机网站建设 网络安全事件应急预 简洁网站 上海网站维护 广东信息安全协会 网络营销属于什么院系 营销软件设计 典型软文营销案例 昆明网站推广优化 网络信息安全工程师需要读什么专业 网络安全 个人隐私 文章 无锡网站推广 工信部 个人信息安全 网络安全与信息办公室 容易做的网站 2015信息安全报告 重庆网站布局信息公司 湛江网站优化 网站解决方案 网站信息安全认证 常州网站制作包括哪些 手机网站制作细节 网络信息安全部成员 互联网热点营销 如何做好微信群营销方案 营销软件设计 社交媒体营销英文 深圳信息安全证明 成都网站建设电话 网站文章图片加标签加 长沙微营销 成都网站建设电话 信息安全业务介绍 国家能源局 信息安全 南京网站搭建 静安区品牌网站建设 信息安全总体方针和安全策略 龙口做网站 虚拟化网络安全技术 专业网站建设公司 信息安全测评机构 资质 网络信息安全专家 2015信息安全报告 网络安全开发环境 email营销的含义 北京市信息安全产业 网络安全事件应急预 区域整合营销 最好的网站模版 网络安全协会文件编号 郑州高端网站 湛江网站优化 南京网站搭建 网站开发费用报价单 亚马逊的营销策略是啥 美团网络营销 企业网站趋势 常州企业网站建设 昆明网站推广优化 亚马逊的营销策略是啥 网络安全预警 sem整合营销哪里好 房地产网站制作 网络安全预警 信息安全技能大赛题目网站到期了 青岛营销推广公司 小红书 营销玩法