看程序学bootstrap24-组件之 进度条

示例 1 : 基本进度条

<!DOCTYPE html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
 
<div class="progress">
  <div class="progress-bar" style="width: 60%;">
  </div>
</div>

示例 2 : 带有提示的进度条

<!DOCTYPE html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div class="progress">
  <div class="progress-bar" style="width: 60%; min-width: 2em;" >
    60%
  </div>
</div>
<div class="progress">
  <div class="progress-bar" style="width: 0%; min-width: 2em;" >
    0%
  </div>
</div>

示例 3 : 不同颜色的进度条

<!DOCTYPE html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div class="progress">
  <div class="progress-bar progress-bar-success"  style="width: 40%">
    40%
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-info"   style="width: 20%">
    20%
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-warning"   style="width: 60%">
    60%
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-danger"   style="width: 80%">
    80%
  </div>
</div>

示例 4 : 条纹

<!DOCTYPE html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div class="progress">
  <div class="progress-bar progress-bar-success progress-bar-striped"  style="width: 40%">
    40%
  </div>
</div>

示例 5 : 发廊

<!DOCTYPE html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div class="progress">
  <div class="progress-bar progress-bar-striped active" style="width: 45%">
    45%
  </div>
</div>

示例 6 : 堆叠

<!DOCTYPE html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div class="progress">
  <div class="progress-bar progress-bar-success" style="width: 35%">
 
  </div>
  <div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
 
  </div>
  <div class="progress-bar progress-bar-danger" style="width: 10%">
 
  </div>
</div>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值