示例 2 : 带有提示的进度条 示例 3 : 不同颜色的进度条 示例 4 : 条纹 示例 5 : 发廊 示例 6 : 堆叠
基本进度条
<!DOCTYPE html>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div class="progress">
<div class="progress-bar" style="width: 60%;">
</div>
</div>
<!DOCTYPE html> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script> <div class="progress"> <div class="progress-bar" style="width: 60%;"> </div> </div>
带有提示的进度条
<!DOCTYPE html>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://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>
<!DOCTYPE html> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://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>
不同颜色的进度条
<!DOCTYPE html>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://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>
条纹
<!DOCTYPE html>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://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>
<!DOCTYPE html> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://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>
发廊
<!DOCTYPE html>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://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>
<!DOCTYPE html> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://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>
堆叠
<!DOCTYPE html>
<script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="https://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>
<!DOCTYPE html> <script src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script> <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet"> <script src="https://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>
HOW2J公众号,关注后实时获知最新的教程和优惠活动,谢谢。
问答区域
2018-01-19
这个东西和菜鸟结合使用真是棒棒哒
2017-11-14
可以解释下min-width和em嘛站长
2017-06-28
怎么让示例5动起来
2017-04-23
示例5的进度条没有发廊显示效果?
提问之前请登陆
提问已经提交成功,正在审核。 请于 我的提问 处查看提问记录,谢谢
|