fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>带有其他颜色动画的进度条实例</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Example of Progress Bars with additional colors using Bootstrap, created by paoo"> <meta name="author" content=""> <!-- Le styles --> <link href="/jscss/bootstrap/bootstrap-2.0.3.css" rel="stylesheet"> <link href="/jscss/bootstrap/v3/example-fixed-layout.css" rel="stylesheet"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link rel="shortcut icon" href="/images/bootstrap/favicon.ico"> <link rel="apple-touch-icon" href="/images/bootstrap/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="/images/bootstrap/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="/images/bootstrap/apple-touch-icon-114x114.png"> </head> <body> <div class="container"> <div class="row"> <div class="span4"> <h3>进度条也可能有其他颜色</h3> <div class="progress progress-info progress-striped" style="margin-bottom: 9px;"> <div class="bar" style="width: 20%"></div> </div> <div class="progress progress-success progress-striped active" style="margin-bottom: 9px;"> <div class="bar" style="width: 40%"></div> </div> <div class="progress progress-warning progress-striped" style="margin-bottom: 9px;"> <div class="bar" style="width: 60%"></div> </div> <div class="progress progress-danger progress-striped active" style="margin-bottom: 9px;"> <div class="bar" style="width: 80%"></div> </div> </div> </div> </div> <hr> </body> </html>
运行结果