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

<a class="close" href="https://gjm.locha.cn/">&times;</a>
个人注册网站.com电子商务型网站虎门做网站中国网络安全大事记信息安全计划深圳做网站(官网)信息安全的基本目标龙岩网站制作信息安全大会2017企业博客营销的劣势高中学霸男生女生的跨界成长之路,小欢喜、小灵异、小感动最终演变一场波澜壮阔的心灵冒险。这是一个禁忌的世界,这是一个被诅咒的世界。 谁晓岁月蹉跎过,那年他乡梦回头。 一把传承的剑,改变的不只是少年的命运, 还有大陆的未来。 一剑生死两茫茫,纵横九载又八荒! 传奇之所以是传奇,因为它永垂不朽。 我将用这把剑,去开创一个属于芸芸众生的无限伟岸! 吾名,李星陨!这一剑,可陨星! 既然这个世界公平正义无法得到伸张, 那我将拿起正义的长剑,代表法官, 挥向这世间的邪恶。 异世界重生的诺言,为了报答神的恩情,自愿为他管理一切账目,可这个世界充斥着因信仰产生的争斗,凡人不过是一群生产用的猪猡。 “我算的不是信仰,是一条又一条的命。”数十亿人类降临万国。 争夺最终顶峰的万国之主。 天量的气运,资源作为奖励,国主们互相厮杀。 还有那些繁星般的人物。 一品谋士,诸葛亮,司马懿,姜子牙…… 一品武将,岳飞,霍去病,李靖,韩信…… 一品美人,秦淮八艳,杨玉环 甚至连绝品修者张三丰都有! …… 金钱,权力,长生! 重生回来的秦权,带着脑海中的记忆,率铁血大秦,誓要镇压一切不臣服之人!末世降临,一场暴雨过后,地球上丧尸横行! 重生回来的宋严,意外获得了签到系统,从此一路高歌猛进! 当人们因为丧尸而畏首畏尾的时候,宋严一马当先地冲入丧尸群中! 当人们为了一把热武器抢破头的时候,宋严缴获了军火库! 当人们想要拥有避难所的时候,宋严攻下小镇发展起了根据地! 当人们愣神的时候,宋严已然成了传奇!这个世界没有划分严明的等级制,这些主角没有外挂一般的金手指,这里的能力千变万化,任何你可以想象到的事物都会成为本源。由于一个潜伏于黑暗中的组织而被扭曲命运的人啊,靠着你们的信念与友情,创造明天吧! PS:人物都是兽人,可以参考“大理寺日志”的少卿,和“从零开始的魔法书”的佣兵,不同种兽人形象有区别,小说内有介绍。 一朝穿越到梦幻西游世界,既然来了就要改变结局,看林逸如何一步步走上巅峰。已经是2678年,地球资源即将枯竭……在一个极度内卷的时代,今天又该如何生存是一半人每天都在思考的问题。大部分人沉迷在虚拟的世界中,等着生命一点一点的逝去……文中的“我”只是一个学生,却不甘现实的虚无,在这个被资本支配着的,麻木的社会,寻找着书中提到的“乌托邦”。 进来看看不就知道了?倒霉蛋李悠然被陨石砸中,竟然被超高智能机械生命寄生,穿越到了陌生的异世界。在这个剑与魔法的世界,李悠然又是如何用机械科技走出一条康庄大道?
公安部信息安全保密法 网络信息安全审查 中国佛山营销网站建设 中国佛山营销网站建设 网络营销的历史起源网络安全 移动防御 信息安全标准大致分为 2017网络安全企业 如何优化网站 大学生信息安全知识 信息及网络安全 与男友前世的因果关系咨询【www.richdady.cn】 婴灵的超度与心灵净化【www.richdady.cn】 亲子关系的心理建设方法有哪些?咨询【www.richdady.cn】 与男友前世的故事分析【www.richdady.cn】 缺心眼的沟通技巧【www.richdady.cn】 孩子厌学的辅导方法【σσЗ8З55О88О√转ihbwel 亲子关系的沟通技巧咨询【微:qq383550880 】√转ihbwel 财运不佳的改运技巧【www.richdady.cn】√转ihbwel 性压抑的自我提升咨询【σσЗ8З55О88О√转ihbwel 外灵干扰的真实案例分析【www.richdady.cn】√转ihbwel 忧郁症的案例分享【www.richdady.cn】√转ihbwel 冤亲债主干扰有哪些常见症状?【σσЗ8З55О88О√转ihbwel 升迁障碍的职场建议咨询【www.richdady.cn】√转ihbwel 灵魂化解的仪式咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 阴间生活的前世因果【σσЗ8З55О88О√转ihbwel 阴间生活的前世记忆【企鹅383550880】√转ihbwel 耳鸣的案例分享【www.richdady.cn】√转ihbwel 儿子抑郁症的家庭支持咨询【企鹅383550880】√转ihbwel 学习成绩差的自我提升【www.richdady.cn】√转ihbwel 与老公前世的记忆解析威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 广州网站建设哪家比较好 昆明网站营销 中国网络安全大事记 互联网营销调研总结 web编程网络安全 网络安全检测方法 怎样开展内容营销 如何建自己的个人网站 三只松鼠干果营销方案 网络安全准入方案 桂林做手机网站 网络安全 实施计划 ui的含义网站建设 信息安全等级测评 信息安全等级测评工作 咨询手机网站建设平台 电商营销公司做什么 营销型网站的建设 营销的意义 龙岗做网站 北京市重大网络安全事件 中国佛山营销网站建设 如何建自己的个人网站 移动 营销河南网站建设 兰州网站建设报价 腾讯营销案例 中山企业网站建设公司 信息安全等级保护制度的基本内容 虎门做网站 大学生信息安全知识 营销型网站推广中国信息安全测评中心 信息安全服务资质 网站建设未来发展前景 国家信息安全部部长 中山企业网站建设公司 三只松鼠干果营销方案 网络安全播报 网络营销的适用范围 中国佛山营销网站建设 信息安全风险评估涉及( )影响和脆弱性三者之间的可能性评估 开发网站需要哪些技术 开展网络安全工作 网站建设未来发展前景 在网站后台上传的图片为什么传到网站上后会变形应该怎么修改 南城微网站建设 战略性网络营销策划书 web网络安全培训 信息安全标准大致分为 浙江省信息安全行业协会 网络安全 实施计划 信息安全测评机构的资质认定主要有哪些 信息安全大会2017 开展网络安全工作 网络信息安全 规范,-1 营销型网站的建设 网络安全怎么检测 网络安全前沿进展深圳自适应网站制作 太原市网站制作公司 兰州网站建设报价 贵州 网站建设 星巴克和微信营销 企业网站项目流程 互联网营销调研总结 网站轮换图 哈尔滨网络科技公司做网站 网络营销策略体系 网络安全展牌 南山区网站建设公司 广州网站建设哪家比较好 浙江省信息安全行业协会 石家庄市制作网站公司 咨询手机网站建设平台 龙岩网站制作 网站做成软件免费 腾讯营销案例 电子商务型网站 信息安全标准大致分为 兰州网站建设报价 中国国家信息安全政策 临沂学营销 营销的特征 成都国家信息安全中心 亚太网络安全协会 营销的特征 网站做成软件免费 营销方案班 做网站公司广州 沙盒技术 信息安全 2017 酒店网络营销方案样版 信息网络安全大会 冠辰网站 建网站代理商 成都企业网站建设 郑州网络营销外包 南山区网站建设公司 广州网站优化公司 北京市重大网络安全事件 网络安全准入方案 信息安全标准 广警转网络安全 2015首都网络安全日 公安部信息安全保密法 重庆 网络安全 国家信息安全服务资质 惠普 中山企业网站建设公司 如何优化网站 网站建设公司 开发网站需要哪些技术 临沂学营销 冠辰网站 信息安全等级测评 邢台网站建设 福州专业网站建设 互联网营销调研总结 信息安全 风险 合规 移动 营销河南网站建设 陕西网络安全监察大队 网络安全与防火墙 如何优化网站 信息安全展 衡水做网站公司 淄博网站 办公环境安全 信息安全 2016网络安全技术发展趋势 2017网络安全企业 三只松鼠干果营销方案 广警转网络安全 全国专业信息安全服务资质公司,-1 营销的类别 国家信息安全等级保护工作协调小组办公室推荐测评机构名单 石家庄网站营销 中国信息安全法研究中心 个人信息安全的例子 福州专业网站建设 在网站后台上传的图片为什么传到网站上后会变形应该怎么修改 网络安全展牌