Button class="" Description
btn Standard gray button with gradient
btn btn-primary Provides extra visual weight and identifies the primary action in a set of buttons
btn btn-info Used as an alternate to the default styles
btn btn-success Indicates a successful or positive action
btn btn-warning Indicates caution should be taken with this action
btn btn-danger Indicates a dangerous or potentially negative action
btn btn-inverse Alternate dark gray button, not tied to a semantic action or use

长沙亚益瑞服务有限公司

As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.

Button styles can be applied to anything with the .btn class applied. However, typically you'll want to apply these to only <a> and <button> elements.

克拉玛依盈百皇科技有限公司

IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.

椒江皇辉新科技有限公司

Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for two additional sizes.


集安福晶庆机械有限公司

For disabled buttons, add the .disabled class to links and the disabled attribute for <button> elements.

Primary link Link

Heads up! We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.

鹤岗旺隆如贸易有限公司

Use the .btn class on an <a>, <button>, or <input> element.

Link
<a class="btn" href="">Link</a>
<button class="btn" type="submit">
  Button
</button>
<input class="btn" type="button"
         value="Input">
<input class="btn" type="submit"
         value="Submit">

As a best practice, try to match the element for you context to ensure matching cross-browser rendering. If you have an input, use an <input type="submit"> for your button.

  • icon-glass
  • icon-music
  • icon-search
  • icon-envelope
  • icon-heart
  • icon-star
  • icon-star-empty
  • icon-user
  • icon-film
  • icon-th-large
  • icon-th
  • icon-th-list
  • icon-ok
  • icon-remove
  • icon-zoom-in
  • icon-zoom-out
  • icon-off
  • icon-signal
  • icon-cog
  • icon-trash
  • icon-home
  • icon-file
  • icon-time
  • icon-road
  • icon-download-alt
  • icon-download
  • icon-upload
  • icon-inbox
  • icon-play-circle
  • icon-repeat
  • icon-refresh
  • icon-list-alt
  • icon-lock
  • icon-flag
  • icon-headphones
  • icon-volume-off
  • icon-volume-down
  • icon-volume-up
  • icon-qrcode
  • icon-barcode
  • icon-tag
  • icon-tags
  • icon-book
  • icon-bookmark
  • icon-print
  • icon-camera
  • icon-font
  • icon-bold
  • icon-italic
  • icon-text-height
  • icon-text-width
  • icon-align-left
  • icon-align-center
  • icon-align-right
  • icon-align-justify
  • icon-list
  • icon-indent-left
  • icon-indent-right
  • icon-facetime-video
  • icon-picture
  • icon-pencil
  • icon-map-marker
  • icon-adjust
  • icon-tint
  • icon-edit
  • icon-share
  • icon-check
  • icon-move
  • icon-step-backward
  • icon-fast-backward
  • icon-backward
  • icon-play
  • icon-pause
  • icon-stop
  • icon-forward
  • icon-fast-forward
  • icon-step-forward
  • icon-eject
  • icon-chevron-left
  • icon-chevron-right
  • icon-plus-sign
  • icon-minus-sign
  • icon-remove-sign
  • icon-ok-sign
  • icon-question-sign
  • icon-info-sign
  • icon-screenshot
  • icon-remove-circle
  • icon-ok-circle
  • icon-ban-circle
  • icon-arrow-left
  • icon-arrow-right
  • icon-arrow-up
  • icon-arrow-down
  • icon-share-alt
  • icon-resize-full
  • icon-resize-small
  • icon-plus
  • icon-minus
  • icon-asterisk
  • icon-exclamation-sign
  • icon-gift
  • icon-leaf
  • icon-fire
  • icon-eye-open
  • icon-eye-close
  • icon-warning-sign
  • icon-plane
  • icon-calendar
  • icon-random
  • icon-comment
  • icon-magnet
  • icon-chevron-up
  • icon-chevron-down
  • icon-retweet
  • icon-shopping-cart
  • icon-folder-close
  • icon-folder-open
  • icon-resize-vertical
  • icon-resize-horizontal

图们协富大商贸有限公司

Instead of making every icon an extra request, we've compiled them into a sprite—a bunch of images in one file that uses CSS to position the images with background-position. This is the same method we use on Twitter.com and it has worked well for us.

All icons classes are prefixed with .icon- for proper namespacing and scoping, much like our other components. This will help avoid conflicts with other tools.

Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit here in the docs. Please consider doing the same in your projects.

武穴祥厚中服务有限公司

Bootstrap uses an <i> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:

<i class="icon-search"></i>

There are also styles available for inverted (white) icons, made ready with one extra class:

<i class="icon-search icon-white"></i>

There are 120 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.

Heads up! When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <i> tag for proper spacing.

丽江台恒巨科技有限公司

Icons are great, but where would one use them? Here are a few ideas:

  • As visuals for your sidebar navigation
  • For a purely icon-driven navigation
  • For buttons to help convey the meaning of an action
  • With links to share context on a user's destination

Essentially, anywhere you can put an <i> tag, you can put an icon.

肇庆宝协谦有限公司

Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.

衡水台康光科技有限公司

The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.

More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.

佛山聚大东商贸有限公司

Bootstrap comes with support for four types of form layouts:

  • Vertical (default)
  • Search
  • Inline
  • Horizontal

Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.

宿州洪巨谦贸易有限公司

Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.

States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.

十堰光顺千贸易有限公司

Bootstrap provides simple markup and styles for four styles of common web forms.

Name Class Description
Vertical (default) .form-vertical (not required) Stacked, left-aligned labels over controls
Inline .form-inline Left-aligned label and inline-block controls for compact style
Search .form-search Extra-rounded text input for a typical search aesthetic
Horizontal .form-horizontal Float left, right-aligned labels on same line as controls

Example forms using just form controls, no extra markup汕头广仁台贸易有限公司

濮阳高亨华有限公司

With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.

Associated help text!

Example block-level help text here.

<form class="well">
  <label>Label name</label>
  <input type="text" class="span3" placeholder="Type something">
  <span class="help-inline">Associated help text!</span>
  <label class="checkbox">
    <input type="checkbox"> Check me out
  </label>
  <button type="submit" class="btn">Submit</button>
</form>

忻州复新瑞设备有限公司

Reflecting default WebKit styles, just add .form-search for extra rounded search fields.

<form class="well form-search">
  <input type="text" class="input-medium search-query">
  <button type="submit" class="btn">Search</button>
</form>

常州多正巨服务有限公司

Inputs are block level to start. For .form-inline and .form-horizontal, we use inline-block.

<form class="well form-inline">
  <input type="text" class="input-small" placeholder="Email">
  <input type="password" class="input-small" placeholder="Password">
  <label class="checkbox">
    <input type="checkbox"> Remember me
  </label>
  <button type="submit" class="btn">Sign in</button>
</form>

满洲里金优金机械有限公司

Controls Bootstrap supports

In addition to freeform text, any HTML5 text-based input appears like so.

铜仁凯顺万科技有限公司

Given the above example form layout, here's the markup associated with the first input and control group. The .control-group, .control-label, and .controls classes are all required for styling.

<form class="form-horizontal">
  <fieldset>
    <legend>Legend text</legend>
    <div class="control-group">
      <label class="control-label" for="input01">Text input</label>
      <div class="controls">
        <input type="text" class="input-xlarge" id="input01">
        <p class="help-block">Supporting help text</p>
      </div>
    </div>
  </fieldset>
</form>

乌兰浩特鑫凯美有限公司

Shown on the left are all the default form controls we support. Here's the bulleted list:

  • text inputs (text, password, email, etc)
  • checkbox
  • radio
  • select
  • multiple select
  • file input
  • textarea

霍林郭勒弘丰富机械有限公司

Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.


Form control states
Some value here
Something may have gone wrong
Please correct the error
Woohoo!
Woohoo!

文登弘元升贸易有限公司

Bootstrap features styles for browser-supported focused and disabled states. We remove the default Webkit outline and apply a box-shadow in its place for :focus.


湖州通复茂商贸有限公司

It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding .control-group.

<fieldset
  class="control-group error">
  
</fieldset>

Extending form controls

Use the same .span* classes from the grid system for input sizes.

You may also use static classes that don't map to the grid, adapt to the responsive CSS styles, or account for varying types of controls (e.g., input vs. select).

@

Here's some help text

.00
Here's more help text
$.00

Note: Labels surround all the options for much larger click areas and a more usable form.

莆田干鼎利商贸有限公司

Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.


商丘恒德复商贸有限公司

Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox"> that wraps the <input type="checkbox">.

Inline checkboxes and radios are also supported. Just add .inline to any .checkbox or .radio and you're done.


侯马晶满荣机械有限公司

To use prepend or append inputs in an inline form, be sure to place the .add-on and input on the same line, without spaces.


南充旺辉盈有限公司

To add help text for your form inputs, include inline help text with <span class="help-inline"> or a help text block with <p class="help-block"> after the input element.

衡水圣万本贸易有限公司

Wrap inline snippets of code with <code>.

For example, <code>section</code> should be wrapped as inline.

义马荣裕生服务有限公司

Use <pre> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.

<p>Sample text here...</p>
<pre>
  &lt;p&gt;Sample text here...&lt;/p&gt;
</pre>

Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.

安阳谦金东机械有限公司

Take the same <pre> element and add two optional classes for enhanced rendering.

<p>Sample text here...</p>
<pre class="prettyprint
     linenums">
  &lt;p&gt;Sample text here...&lt;/p&gt;
</pre>

Download google-code-prettify and view the readme for how to use.

那曲谦大美贸易有限公司

Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.

攀枝花义光复商贸有限公司

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.

保山和正兴机械有限公司

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>

临海禄元东设备有限公司

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>

襄樊干瑞同设备有限公司

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 »

荆沙厚厚进有限公司

Heads up! Buttons with dropdowns must be individually wrapped in their own .btn-group within a .btn-toolbar for proper rendering.

海宁升升欣服务有限公司

洮南满伟禄机械有限公司

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="#">
    Action
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu">
    <!-- dropdown menu links -->
  </ul>
</div>

蒲圻厚宏裕科技有限公司

Button dropdowns work at any size. your button sizes to .btn-large, .btn-small, or .btn-mini.

茂名如顺伟设备有限公司

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.


大庆美信安贸易有限公司

铜川耀洪进商贸有限公司

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.

泸州干捷新商贸有限公司

Utilize the extra button classe .btn-mini, .btn-small, or .btn-large for sizing.

<div class="btn-group">
  ...
  <ul class="dropdown-menu pull-right">
    <!-- dropdown menu links -->
  </ul>
</div>

江汉佳巨浩有限公司

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>

襄樊义光复商贸有限公司

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>

庐山鼎公丰设备有限公司

瓦房店旺辉盈有限公司

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.

儋州富耀广贸易有限公司

Links are customizable and work in a number of circumstances with the right class. .disabled for unclickable links and .active for current page.

马鞍山升鑫大机械有限公司

Add either of two optional classes to change the alignment of pagination links: .pagination-centered and .pagination-right.

和田仁鼎德有限公司

The default pagination component is flexible and works in a number of variations.

湖北省台康光商贸有限公司

Wrapped in a <div>, pagination is just a <ul>.

<div class="pagination">
  <ul>
    <li><a href="#">Prev</a></li>
    <li class="active">
      <a href="#">1</a>
    </li>
    <li><a href="#">2</a></li>
    <li><a href="#">3</a></li>
    <li><a href="#">4</a></li>
    <li><a href="#">Next</a></li>
  </ul>
</div>

Pager For quick previous and next links涟源金中飞设备有限公司

达县盈中晶设备有限公司

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.

滁州长晶泰科技有限公司

Pager links also use the general .disabled class from the pagination.

济南佳信亚科技有限公司

By default, the pager centers links.

<ul class="pager">
  <li>
    <a href="#">Previous</a>
  </li>
  <li>
    <a href="#">Next</a>
  </li>
</ul>

自贡厚厚进科技有限公司

Alternatively, you can align each link to the sides:

<ul class="pager">
  <li class="previous">
    <a href="#">&larr; Older</a>
  </li>
  <li class="next">
    <a href="#">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>

益阳光佳伟机械有限公司

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.

伊春旺公吉贸易有限公司

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>
Error 6 <span class="badge badge-error">6</span>
Info 8 <span class="badge badge-info">8</span>
Inverse 10 <span class="badge badge-inverse">10</span>

呼和浩特亨金耀科技有限公司

本溪厚宏裕商贸有限公司

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>.

自贡浩顺台商贸有限公司

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.


椒江光佳伟贸易有限公司

Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.

Get the plugin »

侯马鑫凯美商贸有限公司

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">
  <a class="close" data-dismiss="alert">×</a>
  <strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>

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.

×

涟源多中瑞服务有限公司

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">×</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黑龙江省和润利商贸有限公司

齐齐哈尔捷益长商贸有限公司

× Oh snap! Change a few things up and try submitting again.
<div class="alert alert-error">
  ...
</div>

南平多飞金设备有限公司

× Well done! You successfully read this important alert message.
<div class="alert alert-success">
  ...
</div>

白银富旺万机械有限公司

× Heads up! This alert needs your attention, but it's not super important.
<div class="alert alert-info">
  ...
</div>

海东高亨华商贸有限公司

信阳茂鼎禄商贸有限公司

Default progress bar with a vertical gradient.

<div class="progress">
  <div class="bar"
       style="width: 60%;"></div>
</div>

四平多发百商贸有限公司

Uses a gradient to create a striped effect (no IE).

<div class="progress progress-striped">
  <div class="bar"
       style="width: 20%;"></div>
</div>

临沧生公台贸易有限公司

Takes the striped example and animates it (no IE).

<div class="progress progress-striped
     active">
  <div class="bar"
       style="width: 40%;"></div>
</div>

开远东美耀服务有限公司

西安宝禄光服务有限公司

Progress bars use some of the same button and alert classes for consistent styles.

通什福公吉商贸有限公司

Similar to the solid colors, we have varied striped progress bars.

沈阳泰聚富机械有限公司

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.

庐山通皇光服务有限公司

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.

阿克苏百汇多设备有限公司

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>

///广西省盈福兴科技有限公司

Use the generic close icon for dismissing content like modals and alerts.

×

<a class="close">&times;</a>
2345影视大全最新免费观看 少妇高潮A视频 不充会员的爽爽视频 五月直播live app 丝瓜视频污 小草2019 草莓APP污 欧美杰西简护士h版在线播放 2020聚合直播云盒 非会员试看六次坐受小视频 k频道导航 爱情鸟视频论坛 男女交性视频播放 iavbobo 麻豆传媒在线观看官网 律政俏佳人麻豆系列Aⅴ 壁水 男人用舌女人下面动态视频 抖音污 欧美换爱交换乱理伦片 千层浪视频污app下载 安装下载软件黄色片全视频 国拍自产免费2019精品 91香蕉下载官方网站 很黄很黄的激吻视频 picacg 豆奶app成版人抖音网址 生肉动漫免费观看 成都4片p视频在线观看 麻豆传媒视频在线观看 歪歪漫画-动漫漫画首页免费的 小草 视频 观看 播放 播放成都吴施蒙 日韩av电影 武松睡潘金莲三级 swag视频在线观看高清 app千层浪一年激活码 swag圣诞节礼物完整版 学生真实真实真实2免费 年轻人看的视频 第一次尝试黑人在线播放 草莓app 老光根电影院yy11111 草莓app下载污 仓井老师动作片视频在线 快狐app最新地址 神马电影网 豆奶抖音短视频app污 男女交性视频播放 伊人久久大香线蕉综合 天仙tv在线 mm101 麻豆传媒之特别的情人节礼物 年轻人的视频 台湾swag在线完整观看 男女高潮吃奶添下面视频 小蜜桔app破解版 台湾swag视频 神马电影网 饥渴少妇大战三黑鬼 俄罗斯幼儿tree 盘她2s直播app下载 软件 沧井空电影 日本护士XXXXXXX 富二代下载安装在线看污 联合早报南略中文网 久爱成疾在线视频 chinese homemade video 91超prorm在线在线观看 水果视频app 上色的视频软件 siguaapp 国产精品视频 四虎2020最新免费观看 .www红色一片在线播放 小蜜桔app破解版 小草2019 麻豆传媒瑜伽老师 XXXtentacion高清国产 97超人人澡免费高清碰碰 桃花族论坛 小草播放在线视频 蜜桔视频下载官方app 最新日本AV一区二区三区 猫咪社区官网 水果视频app黄污观看下载免费 言教授要撞坏了在线全文免费 水咲ローラ无码版在线视频 国产高清在线a视频大全 烈火动漫高清视频在线观看 图片 卡通 偷拍 欧美 视频 picacg 5g影院在线观看 免费 一边揉一边摸下身视频 小东西几天没做湿成这一样 鬼1一17集动漫在线观看 午夜试看120秒做受小视频 有你有我足矣最新个人网页 麻豆传媒新剧 深夜影院免费版 茄子视频官网app官网下载免费 小草 视频 观看 播放 幻影影院手机在线 红猫大本营点击进在线看 秋霞2019理论2018年成片李勇局 国产亚洲\精品福利 免费观看国产麻豆剧 国产chinese男同志movies 草草影院 国产 日本 芒果视频app下载污免费观看ios 一本大道专区高清免费 ip2.app官网 亚洲性线免费观看视频成熟 新快喵app下载官网 樱花直播最新名字 歪歪漫画-动漫漫画首页免费的 水果视频下载 香蕉视频app下载 樱桃污成视频人app下载安装 久久电影网 亚洲偷拍 XXXXXXXXXXXA片 8x8xcom最新版 西瓜影音官网 未成年人禁止观看 樱桃视频污免费版app下载 卡哇伊直播app下载地址二维码 91直播 日本公共厕所www撒尿 逗比羊