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

<a class="close" href="https://tuse.locha.cn/">&times;</a>
四川大学信息安全专业高端大气网站聊城网站建设费用网络信息安全监管方案网站制作一条龙网站备案信息注销原因?双色调网站怎么创建网站牛肉干营销信息安信息安全2012西电网络安全大赛 破解题目在21世纪,华夏国拥有着十分强大的国力,其中,在北海军区,有一位兵王,战功无数,行动从未失败过。但由于仇人太多,应付不过来,终究被小人算计,而我们的故事,就从这里开始...特殊体质,资质绝佳,修炼救母。红尘中相视一眼,续写剪不断情缘。 不争大世,不逆天道,顺势修仙。无尽岁月一浮尘,凡人亦可登绝巅。资深外科医生林陨,莫名穿越到九州大陆的玄月宗,成为了最被人看不起的一名上门赘婿,同时也拥有了一位美若天仙的宗主妻子。 幸得药神系统,无限速成神品丹药,修得上古肉身成圣之法。从此扭转悲惨命运,脱胎换骨! 阴谋毒害、冷眼嘲笑……一切都将成为过去。 纵横万古帝之道,我自剑来谁言轻? 哪怕是当赘婿,他也要当一名最强最狠的赘婿!一介凡人意外闯入修仙世界,成为一名资质普通但向道之心甚坚的修仙者。 仙路崎岖,长生漫漫,虽千万人,吾往矣!你相信这个世界上是没有鬼的,都市传说也总是有迹可循,八尺大人是人撑着木偶,灵异公车只是高仿车伪装,猫脸老太用面具拐卖儿童。不过当儿童用伞顶着的帽子被家长收回,在街上的“野公交”被交警罚下,人贩子被判刑7年,谁又能解释这之后的状况呢?是神?是鬼?还是人?在人类征服宇宙的无数岁月里,是否会有人想起一颗名为地球的星球 是否有人会重新寻找它的踪迹 是否有人会重新踏入它的怀抱军阀割据的硝烟拉开血色幕帘,震颤的华夏撕心裂肺,真理萌芽崛起,热血青年何以报国? 他们血肉之躯先行,为民生而立志,为真理而捐躯,为华夏之崛起而浴血奋战。 苏家二少幸遇刁五爷,改写了病怏怏的一生,幸遇李美英,热血青年找到真理的最终方向,与日寇拼死搏杀,用血肉筑起华夏尊严,然而在国内战争伊始,面对同胞之间的刀兵相见,他茫然失去了方向,何以为家?何以卫家?何以同袍? 北平在风雨中飘摇, 封建贵族、帮会、特务处处设立陷阱,为和平解放北平的地下党将面临怎样的艰难险阻? 在迎来解放军入城的那一刻,正阳门的城楼上,他头悬绞刑架,她刀架虎头铡,红日冉冉升起,是血祭?还是新生? 双月同天,天机无限。 且看今夜,时空错现。 小人物来到双月大陆,开启了一段特别之旅,奇遇人生,红颜相随,在这个实力为尊,强者如云的世界,看他如何该生存下去。别家老师军训东躲西藏,你军训拿ak47突突教官?! 别家老师上课认真教书,你上课带我们玩VR?! 别家老师放假让我们注意安全,你放假带我们荒岛求生?! 抱歉,这样的老师,给我来一打!!! 对老师而言,保护学生是职责,即使自己是一个杀手。 灵气复苏的来临,阴谋与疑云渐渐浮出水面,一个脱离组织的杀手如何改变自己的命运? 一块不起眼的石头,内里竟然容纳一方世界。少年只是随手一捡,便是陷入沉睡。 十年一梦,梦里十万年。 醒来,家族没落,承受着家族的血脉诅咒,他能否逆天改命。
国家信息安全项目 吴桥网站 facebook内容营销案例 病毒性营销的目的 绵阳汽车网站制作 网络营销实战总结 制作外贸网站的公司 网络信息安全公司 长沙网站维护 工程项目网络信息安全 去世的母亲的前世缘分咨询【www.richdady.cn】 家庭关系的和谐共建方法有哪些?咨询【www.richdady.cn】 财运不佳的财富增长技巧有哪些?【www.richdady.cn】 如何识别外灵干扰的症状【www.richdady.cn】 婚姻生活不顺的前世因果【www.richdady.cn】 如何识别冤亲债主【σσЗ8З55О88О√转ihbwel 意外事故的主要原因分析【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 前世因果咨询咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 特殊学校咨询【www.richdady.cn】√转ihbwel 头脑混沌的案例分享咨询【企鹅383550880】√转ihbwel 感情纠纷的情感重建方法有哪些?【微:qq383550880 】√转ihbwel 心特别累的环境影响咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 感情纠纷的情感沟通方法有哪些?咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 亲子关系的情感交流方法有哪些?咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 迟缓儿的康复训练【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 迟缓儿的案例分享威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 去世的母亲的前世解析咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世老公的前世解析【www.richdady.cn】√转ihbwel 内心恐惧胆怯的咨询技巧【www.richdady.cn】√转ihbwel 大龄剩女的婚恋心态如何调整?【www.richdady.cn】√转ihbwel 网站制作app 微软系统的信息安全隐患排查 微信运营营销的区别 汽车网站模板 网络安全系统实施方案 优秀个人网站欣赏 网站设计公司市场容量 可信赖的网站建设案例 书法网站建站目标 小米公司网络营销 html写手机网站吗 信息安全技术措施 网络安全专家咨询电话 网站建设的网站定位 产品型网站 简述网络安全扫描的内容? 电脑无网络安全 facebook内容营销案例 网络安全部 官方网站欣赏 郑州网络营销推广公司 章丘网站建设 网络安全专家咨询电话 整合传播营销 合影营销 网站建设资讯 上海网络安全会议2017 这么开网站 四平网站建设 网站设计一般会遇到哪些问题 信息安全学python 工程项目网络信息安全 潍坊网站设计 网络营销职业经理人 信息安全内审员培训 软件信息安全测评中心,-1 2017年网络安全的事件 个人如何建网站 国家领导人重视网络安全 信息网络安全现状 如何建设网站 点墨网站 e mail营销成功案例 优秀个人网站欣赏 如何进行网络营销 小白网络营销 湖南高端网站制 小米公司网络营销 沈阳整合营销怎么做 风险管理与信息安全 产品型网站 石家庄制作网站推广 网络安全作品 杭州网络科技网站建设 制作外贸网站的公司 浦东分局网络安全保卫 成都企业网络营销 网络安全的要求信息安全审查员 小白网络营销 平台型网站 微信订阅号营销 聊城网站建设费用 网络安全职位 新媒体营销都有什么 网络安全发展 微信运营营销的区别 简述网络安全扫描的内容? 国家信息安全项目 网站搜索框 在内网部署漏洞检测服务器(或安全扫描设备)及时发现网络安全漏洞; 长沙电子商务网站建设 公司建网站 重庆专业网站搭建 网络安全作品 2017信息安全大事件 长沙网站维护 网络营销公司微信号 北京工作室网站建设 安全架构和信息安全的差异 e mail营销成功案例 网络安全 知识点 论坛营销表现形式 大学生 网络安全 软件注册信息安全 可信赖的网站建设案例 上海网络安全会议2017 定制网站与模板建站维护 青岛开发区制作网站公司 北京工作室网站建设 广州企业网站建设 信息安全分析师培训 大连专业网站设计服务商 信息安全分析师培训 四平网站建设 新媒体营销都有什么 信息安全cnas认证证书 风险管理与信息安全 郑州网络营销推广公司 贵州网站推广优化 电脑无网络安全 书法网站建站目标 网络安全专家咨询电话 河南网站建设公司 网络营销行业分析 台州公司网站建设 网络安全系统实施方案 网络和信息安全 网站制作一条龙 郑州的数据营销公司 高端企业网站信息 南通做网站 网络营销实战总结 绵阳汽车网站制作 新媒体营销都有什么 网络安全部 网络安全评价标准主要有哪些 个人如何建网站 网络安全隔离交换技术 html写手机网站吗 个人如何建网站 高端企业网站信息 公司建网站 官方网站欣赏 网购网络营销基础知识 深圳高端电商网站建设者 字典营销 如何提高信息安全意识,-1 怎么理解一对一营销 网络安全职位 网站质作 网络营销行业分析 广州互动营销公司排名 杭州网络科技网站建设 跨境电商网络营销教材 如何认识互联网营销