Follow us on Twitter and Facebook

2012白小姐玄机诗:/// Alerts and Bars

/// Lightweight defaults

Rewritten base class

白小姐马报 www.w1ab.com 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">
  <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.

×

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">×</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.

×

<a class="close">&times;</a>
/// Our Twitter Feed

Find out what's happening, right now, with the people and organizations you care about.

Visit link
© Copyright © 2013.Company name All rights reserved.即刻工作室 Collect from 即刻工作室
  • 里皮麾下的国足能走多远? 2019-04-18
  • 驻工商总局纪检组问责9名司局级干部 持续发力 2019-04-18
  • 点赞英雄机组 关注事故原因 2019-04-09
  • 推动各国携手建设人类命运共同体(钟声) 2019-04-09
  • 新车图解:思皓E20X 这台大众有点与众不同 2019-04-08
  • [网连中国]博物馆越来越热门,你有多久没去了? 2019-03-21
  • 只有流氓,才离开自己的主题而去歪想了! 2019-03-08
  • 新型光合作用可利用近红外光 2019-03-08
  • 栗战书主持大气污染防治法执法检查组第二次全会 2019-03-07
  • 除了杨崇勇,“2亿元贪官俱乐部”至少还有这些人 2019-03-07
  • 杭州西湖天气,杭州西湖天气预报,杭州西湖天气预报一周 2018-07-28
  • 564| 311| 366| 540| 478| 681| 120| 976| 952| 265|