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

<a class="close" href="https://jab.xeni.cn/">&times;</a>
网络安全宣传周的内容中小型企业网络安全和管理信息安全报告全国信息安全大赛作品网络安全工作的目标包括网络营销的优势东软网络安全产品网站乱码聊城网站制作价格中国网络安全归谁管理乾坤未定,你我皆是黑马! 乾坤已定,那就扭转乾坤! 总有人要赢,为什么不能是我…… 我叫方休,谁惹我,我就和他玩命,至死方休…… 《关注我的微信公众号:苏月夕》主人公是天生黑白瞳,曾有道士说她活不了,可是她奇迹般活到18岁,并且遇到一个“道”的化身,改变了她的一生,可五弊三缺让她在爱情中不断受挫!又为爱下地府!等发生的一系列事小丽?哪个小丽?咳!咳!就是你们知道的那个小丽! 小丽还是离开了这个物欲横流的沿海城市! 偌大的火车站,只留下小祥孤独的身影! 小张:你一个中职生,还玩脚踩两只船的把戏,玩就玩吧,还跟那种女人,滚吧! 父亲:畜生!你敢出这个家门,有本事就别回来~ 母亲:小祥,啥样的女孩,你不能挑?你偏偏选那种的,那种人能领进门吗? 女友的蔑视、父亲的痛骂、母亲的乞求~ 小祥还是毅然决然地坐上了去云贵的绿皮火车! 他要去跟他的青春告个别! 看一眼小丽,再看一眼她嫁的老实人! 朴素的婚宴上,小丽看到熟悉的身影,追着跑过来! 崎岖的山头,二人不慎失足,双双跌落山崖! 谁知,醒来时竟穿越到宋朝~ 叮!叮!叮! 【检测到宿主已穿越,赏赐宋朝百科全书一套!】言钦雅有四张面具,首为狐耳,是对黎明百姓仁慈与怜悯,然愚民不可救,围而攻之,遂出黑龙,怒而屠城;冷静之后,蝶衣覆面,游荡江湖,放逐为自由;奈何红颜为君倾,赠君鸣凰,携妻归庙堂。 在高校被混混欺负的王浩天只能忍气吞声。他唯一的乐趣就是在网游中大杀四方。 听说去年结束内侧的网游【无尽世界】正式上线,身为内测玩家的他再也不用唯唯诺诺了。 戴上8D头盔的他开始了网游神奇之旅。 【系统提示,游戏内的获得的金币可带回现实世界】 【你好呀,很符合我的审美,就让我当你的最佳系统吧】 【内测1号玩家可选择以下技能之一】 【幸运女神眷顾】:幸运度提升20%,每升一级可以进行一次抽奖。 【技能点之王】:技能点比普通玩家多出20点,且可以随意更改,后期等级越高,上限越高。 【打不死的小强】:血量越低防御力越高,死后可立即复活,不限次数。 【点石成金】:开局金币爆率提升100%,后期可提升。 【技能书槽位之王】:比正常玩家多出5个技能书槽位,且免费赠送一本SSS技能书。 【鬼影迷踪】:50%概率闪避对方攻击,每两秒触发一次,随等级变化而缩短 【女性克星】:女性玩家100% 不是?这最后一个技能是啥呀?父母神秘失踪,只留下四样东西: 1封信、1万块钱、1枚扳指,1瓶老酒。 “小烨:18岁前,不许喝酒,不许找我们。” 今晚过后,苏烨就满18岁了。 喝不喝那瓶酒呢? 喝了之后将会发生什么? 这是苏烨面临的两个问题!虎生双翼上苍穹 , 横看天际云满空 。 若是破出白云外 , 黄金满目龙生风。 深夜梦醒,总是扪心自问,人活一世,意义究竟在那里呢? 人类真的可以长生不死,与天地同寿,与日月同辉吗? 如果每个人都长生不死,每个人都能拥有漫长且无尽生命,又有什么意义呢? 一个美人,用纤纤玉指指向空中圆月。 所有人都被美的惊神动魄的美人手指所吸引,却浑然忘记了去看天空中的圆月。 而人也是如此,每日声色犬马,被五彩缤纷的世界迷的梦幻颠倒,就算长生不死,永世长存,与禽兽又有何异? 只有意识到心中之真我,方才惊觉生命真谛,除心之外,别无他物。 人性本洁,白如明月,此心一闭,万世皆寂。 “那人是谁?”“这你都不认识?他就是那鸿渊传人,魔圣宁渊。””混蛋!别跑!十万八千器!“”那是什么?!“众人震惊的看着天上的那道长河。良久,一人唯唯诺诺的说道:”那些,都是灵器?“”怎么可能?!这么多!“怎么不可能?他可是天下第一炼器师!!那些年 有感人的爱情 有动人的友情 有令人心寒的亲情 或是身不由已 或是一时冲动 无论结果如何 那都是自己选择的青春 炽热,火一般滚烫的青春黄帝内经,天地万物附和,升本质,万物归一,气数本轮回之数,任督二脉,天宫地方,天圆齐全。
台湾网站建设 昆山网站 怎么设置网站栏目 网络安全与openssl 深圳h5网站制作 大学生网络安全实例 第四届中国网络安全大会 mcafee 网络安全 电子商务营销的关键是 mcafee 网络安全 冤亲债主干扰的预防措施【www.richdady.cn】 与男友前世的识别方法咨询【www.richdady.cn】 强迫症的家庭支持【www.richdady.cn】 冤亲债主干扰的常见案例咨询【www.richdady.cn】 阴间生活的前世因果咨询【www.richdady.cn】 投资项目的咨询技巧【www.richdady.cn】√转ihbwel 前世今生的轮回理论咨询【企鹅383550880】√转ihbwel 与男友前世的咨询技巧咨询【σσЗ8З55О88О√转ihbwel 事业不顺的职场提升咨询【微:qq383550880 】√转ihbwel 公司破产的应对策略咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 事业不顺的职场建议有哪些?咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 耳鸣的前世因果咨询【σσЗ8З55О88О√转ihbwel 头脑混沌时如何提高注意力威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 大龄剩女的情感生活咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 失业的职业规划咨询【www.richdady.cn】√转ihbwel 失业的应对方法咨询【σσЗ8З55О88О√转ihbwel 心特别累的案例分享咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 与公婆前世的影响分析【www.richdady.cn】√转ihbwel 意外的前世因果咨询【企鹅383550880】√转ihbwel 升迁障碍的职场规划如何制定?咨询【σσЗ8З55О88О√转ihbwel 太原网站优化 九江网站建设 台湾网站建设 网络营销本科学校 深圳h5网站制作 科技公司网站设 天津网站设计 中小型企业网络安全和管理 网络安全案例设计 展示网站系统架构设计 湖南省金盾信息安全等级保护评估中心有限公司 无线网络安全现状 怎样给网站增加栏目 网络安全法2013年 定西网站建设 信息安全攻防平台 特朗普 网络安全委员会 南通哪里有做网站的 mcafee 网络安全 当当网营销 国家网络安全标志 网络营销的市场前景汕头网络营销外包 网络营销的收获 2014年信息安全事件 2017网络安全年会合肥 网络安全周报 网络营销搜索引擎规划 网络营销的优势 常州网站开发 李强 网络安全审查 杭州高端定制网站 网络营销的优势 网络营销团队宣传视频 织梦dedecms网站改版后幻灯片部分显示空白的解决方法 全国信息安全大赛作品 网络安全认证机构 网络营销充电 网络营销充电 无锡网站制作排名 怎么设置网站栏目 黄骅做网站 网站建 网络营销服务包括什么 电商营销可以自学吗 九江网站建设 昆山网站 上海信息安全师报名 佛山建网站 台湾网站建设 整合营销成功的案例 湖南省金盾信息安全等级保护评估中心有限公司 网络安全与openssl 昆明网络营销网站 台湾网站建设 国家网络安全标志 国内信息安全的法律法主要有哪些 网络营销带来的利与弊 网络安全与信息活动方案 灵动网站建设 《家装公司营销教程》 建网站需要什么 网络安全服务. 湖北信息安全测评中心 如何做好外贸网络营销 企业网页设计网站案例 灵动网站建设 网络营销的优势 信息安全泄漏 企业宣传网站建设 线条类网站 中国信息安全测评中心 杭州网站建设开发 合肥 酒店 网络营销 恒安 网络安全 网络建设网站 网站改版升级总结 深信服网络安全渭南建网站 技术安全是网络安全 site.pan.baidu.com 百度推广营销方案国家信息安全中心人员,-1 陌陌营销工具 网站空间免费 网站动效 上海品质网站建设 织梦dedecms网站改版后幻灯片部分显示空白的解决方法 许可email营销的功能 奶粉微信群营销方案 网络安全面临的威胁主要有哪些 大学生网络安全实例 网络安全与信息活动方案 信息安全从业者 展示网站系统架构设计 网站乱码 上海网站改版哪家好 中国网络安全归谁管理 上海网络营销策划公司 上海信息安全师报名 第四届中国网络安全大会 展示网站系统架构设计 网络安全事件应急流程图 网站建设服务费标准 《家装公司营销教程》 网站建设步骤 网络安全应急响应时间 网站统计代码 信息安全备案证书 对信息系统运营使用单位的信息安全等级保护工作情况,-1 深圳 企业网站建设 淘宝双十一的营销策略 网络安全小报字体设计 免费公司网站建设 电子商务营销的关键是 网络信息安全现状,-1 网络安全 魔力象限 三门网站制作 网络安全产品 ppt 成都网站设计公司价格 杭州高端定制网站 site.pan.baidu.com 百度推广营销方案国家信息安全中心人员,-1 网络安全加密算法网站建设公司顺义 淄博微网站 信息安全从业者 国家信息安全小组成员 南通哪里有做网站的 网站线框图 青海做网站公司 外贸家具网站首页设计 网络营销团队宣传视频 大数据与信息安全讲座 温州网站优化 第四届中国网络安全大会 有关网络安全的新技术 国家网络安全中心在哪 乐营销平台 简述网络营销特点是什么意思 现代感网站