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

<a class="close" href="https://xl6.haoloufang.cn/">&times;</a>
免费建站网站大全深圳b2c网站构建外包营销台州高端网站建设网络安全产品认证上海专业做网站排名网站模板下载免费的网站申请网站转化率东营网站优化网络营销最大的优势异世界重生 一穷二白, 苏醒后只有个关心自己的漂亮妹妹。血腥残酷的修真世界,实力为尊,崇尚武力,凡人皆为蝼蚁。想要站到世界的最巅峰,孤儿院长大的他,如何做到?卖力苦修?拜入修真大派?还是寻得名师?统统都不是,偶得万界供应系统统加身,开挂人生由此开始,修炼、金钱、宝物、丹药诸多资源随手可得。从此开始了火箭般的成长之路,从一介凡人蜕变为修真巨贾,不过弹指间。世间灵纹分紫微、太微、天市三等! 亦被分为先天、后天、传承三种! 少年被虐待而死,心有不甘催生灵纹,从此踏上仙路! 在高校被混混欺负的王浩天只能忍气吞声。他唯一的乐趣就是在网游中大杀四方。 听说去年结束内侧的网游【无尽世界】正式上线,身为内测玩家的他再也不用唯唯诺诺了。 戴上8D头盔的他开始了网游神奇之旅。 【系统提示,游戏内的获得的金币可带回现实世界】 【你好呀,很符合我的审美,就让我当你的最佳系统吧】 【内测1号玩家可选择以下技能之一】 【幸运女神眷顾】:幸运度提升20%,每升一级可以进行一次抽奖。 【技能点之王】:技能点比普通玩家多出20点,且可以随意更改,后期等级越高,上限越高。 【打不死的小强】:血量越低防御力越高,死后可立即复活,不限次数。 【点石成金】:开局金币爆率提升100%,后期可提升。 【技能书槽位之王】:比正常玩家多出5个技能书槽位,且免费赠送一本SSS技能书。 【鬼影迷踪】:50%概率闪避对方攻击,每两秒触发一次,随等级变化而缩短 【女性克星】:女性玩家100% 不是?这最后一个技能是啥呀? 灵异征文 “脸谱杀手”公然挑衅警方,犯下连环血案。 悬案未破,新案又接踵而来。“一冷一暖”的刑警组合,抽丝剥茧,拨开层层迷雾,智勇缉凶,展开一场场正义与邪恶的斗争。 真相的揭示,时而令人无奈,时而另藏玄机......究竟谁才是真正的罪魁祸首?还待各位看官细细品来......女神系列第四部,钟世是两个高级科学家伊德和蓝雪的长子,二弟盛安、三妹和羽、四妹晓冰,兄妹四人尚在襁褓时亲身经历并目睹两名堪称天才的基层物理学家犯罪作案,伊德和蓝雪重伤不起。为避免未来世界血雨腥风,由钟世起头组建科技警察局,皆文武双全。钟世寄养在叔叔家,其他人寄养在舅姨家,大仇得报后开拔捍卫未来的征途。 三年前,我带着无限遗憾离开了上海这座城市……平凡的一天突然因为一场梦境变得鲜活起来,为了抵御外敌,所幸就将自己树立为反派典型,被人打败,让那些真正的反派统统忌惮。十十八年前,他——凌晨降生在了这个世界上,十十八年后,他已有了七大将之首的称号,一次次的外敌入侵,一次次的武功打斗,他能否与其余六将,一同成为武道巅峰秦凤鸣,本是一名山村普通少年,误食无名朱果,踏入修真路,以炼器起家,凭借制符天赋,只身闯荡荆棘密布的修仙界,本一切都顺利非常,但却是有一难料之事发生在了他身上…… 本书自开更之日起,从未断更,请放心阅读。经典玄幻,就在《百炼飞升录》
博客营销的弊端 免费建站网站大全 中华人民共和国工业和信息化部就业指导中心认证网络营销师 2015中国网络安全大赛 网站制作 武汉 上海网站开发制作 无印良品营销创意 企业手机网站建设机构 制作网站电话 最好的网络安全实验室 暗恋的解决方法咨询【www.richdady.cn】 头脑混沌的前世因果【www.richdady.cn】 心慌胸闷头晕咨询【www.richdady.cn】 暗恋的原因分析【www.richdady.cn】 家庭关系的矛盾化解方法有哪些?【www.richdady.cn】 有官司的自我保护【企鹅383550880】√转ihbwel 如何知道自己有前世缘份?咨询【企鹅383550880】√转ihbwel 前世缘份的故事有哪些真实经历?威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 婚姻生活不顺咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 去世的父亲的影响分析咨询【www.richdady.cn】√转ihbwel 老公家暴的前世记忆咨询【www.richdady.cn】√转ihbwel 儿子不读书【σσЗ8З55О88О√转ihbwel 意外的原因威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 儿子抑郁症的案例分享【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 感觉整天没精神怎么办咨询威:⒊⒏⒊⒌⒌O⒏⒏O√转ihbwel 前世今生的轮回传说咨询【Q⒊⒏⒊⒌⒌O⒏⒏O】√转ihbwel 心慌胸闷头晕咨询【企鹅383550880】√转ihbwel 脑部不清晰的环境影响【微:qq383550880 】√转ihbwel 意外的前世影响【微:qq383550880 】√转ihbwel 升迁障碍的职场瓶颈如何突破?【企鹅383550880】√转ihbwel 做网站书籍 徐州市网站 重庆网站开发设计公司电话 美国 信息安全审查 衢州做网站 专业开发网站公司 三门网站制作 朔州网站建设 网络安全实验室 注入关 中国移动网络信息安全,-1 网络营销总结与分析 电子商务网站设计 石家庄微网站建设 网站主持人 内部网络安全 上海建立公司网站 网络安全培训目的 石家庄网站建设 信息安全 内部人员攻击 2013年深圳市信息安全等级保护专项检查工作 山东省信息安全等级 网络营销专业知识 网络安全反黑视频教程平阳网站制作 网站摸板 网站友情链接我们加了对方首页对方把我们加在内页有用吗? 建什么网站好 精准网络营销 建什么网站好 微信网络营销工程师 css 2017 网络安全 博客营销的弊端 广州品牌营销策划有限公司官网 网站空间免费 网站空间免费 网络安全培训目的 营销服务专家 对青少年网络安全负责 网络安全 日本 互联网信息安全举报 网络安全防御平台 朔州网站建设 韩国 信息安全 无锡网站制作排名 网站制作公司哪家好 新闻网站设计原则 e mail营销有何特点 spark 信息安全 为什么要学网络营销 广州网站设计公司招聘 制作网站电话 淘宝店铺网络营销策划邮件营销的步骤有哪些 防范网络安全事件 无锡网络公司网站建设 邢台网站建设厂家 大连地区网站建设 网站主持人 网站设计流程 大连地区网站建设 微信营销的案例分析 网络营销的出发点 无印良品营销创意 建网站的程序免费 网站制作 中企动力公司 网络安全方面国内外研究成果 营销策划去哪里学 山东省信息安全等级 计算机的信息安全 徐州市网站 韩国 信息安全 网络营销产品策略种类 重庆专业网站建设 北京信息安全毛处长 网络安全与控制 衢州做网站 做网站书籍 2015中国网络安全大赛 网络安全 黑产 深圳 企业网站建设 电商与微营销 网站被黑了 美国国家网络安全局 电子商务可能存在哪些不安全因素?一般可采取哪些网络安全措施 深圳b2c网站构建 营销策划去哪里学 企业手机网站建设机构 最好的网络安全实验室 信息安全等级测评机构能力要求 对青少年网络安全负责 石家庄企业商城版网站建设 信息安全服务资质咨询中心,-1 网站被黑了 三门网站制作 邢台网站建设厂家 小米公司网络营销定位 it网络安全培训 思尚营销 为什么用php -s可以访问本地网站而开启apache就拒绝 安徽网站建设 网站设计流程 网络安全培训目的 衢州做网站 为什么用php -s可以访问本地网站而开启apache就拒绝 网站有哪些类型 网站制作 武汉 大连 营销策划公司 兰州网站建设 第三方人员 信息安全 信息安全等级测评机构能力要求 广州品牌营销策划有限公司官网 网络安全设备魔力象限 镇江网站推广 企业建网站的 程序 2014用户信息安全,-1 spark 信息安全 最好的网络安全实验室 网络营销能力评比 全国中学生网络安全 天津信息安全等级保护培训 东营网站优化网络营销最大的优势 内部网络安全 网络安全防范的技术手段有哪些? 网络营销的营销手段 河源网站建设 古典风网站 西安网络安全比赛 网站重要性 工作室营销 上海网站开发制作 网络安全反黑视频教程平阳网站制作 济南外贸网站建设公司排名 佛山手机网站建设 信息安全云服务平台 兰州网站建设 2015中国网络安全大赛 windows网络安全