bootstrap中的 progress bar

 progress bar 中包含了:

progress、 progress-striped、 progress-danger、 progress-info、 progress-success、 progress-warning。

可以根据自己的需要来组合进度条的样式外观。

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

效果图:


Bootstrap Progressbar 是一个 jQuery 插件,扩展了基本引导进度。它通过添加 Javascript 预先存在的 CSS 转换提供了动态进度条。此外,你可以在动态进度条通过回调显示当前进度信息。代码示例:default valuesProgressbar.defaults = {     transition_delay: 300,     refresh_speed: 50,     display_text: 'none',     use_percentage: true,    percent_format: function(percent) { return percent   '%'; },    amount_format: function(amount_part, amount_total) { return amount_part   ' / '   amount_total; },     update: $.noop,     done: $.noop,     fail: $.noop };transition_delay$(document).ready(function() {     $('.progress .progress-bar').progressbar({         transition_delay: 1500     }); });animationhorizontalless.progress .bar {     .transition(width 2s ease-in-out); }scss.progress.vertical .progress-bar {     @include transition(width 2s ease-in-out); }css.progress .bar {     -webkit-transition: width 2s ease-in-out;     -moz-transition: width 2s ease-in-out;     -ms-transition: width 2s ease-in-out;     -o-transition: width 2s ease-in-out;     transition: width 2s ease-in-out; }verticalless.progress.vertical .bar {     .transition(height 2s ease-in-out); }scss.progress.vertical .bar {     @include transition(height 2s ease-in-out); }css.progress.vertical .bar {     -webkit-transition: height 2s ease-in-out;     -moz-transition: height 2s ease-in-out;     -ms-transition: height 2s ease-in-out;     -o-transition: height 2s ease-in-out;     transition: height 2s ease-in-out; } 标签:Bootstrap
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值