菜鸟学堂
在线运行
源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap进度条实例</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Example of Progress Bars using Twitter Bootstrap, created by edu.jb51.net"> <meta name="author" content=""> <link href="../bootstrap/bootstrap-2.0.3.css" rel="stylesheet"> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/assets/css/example-fixed-layout.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link rel="shortcut icon" href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/favicon.ico"> <link rel="apple-touch-icon" href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/apple-touch-icon-114x114.png"></head> <body> <div class="container"> <div class="row"> <div class="span4"> <h3>一个基本的垂直方向进度条</h3> <div class="progress"> <div class="bar" style="width: 60%;"></div> </div> <h3>条纹进度条,使用梯度来创建一个条纹的效果</h3> <div class="progress progress-striped"> <div class="bar" style="width: 60%;"></div> </div> <h3>一个动画进度条</h3> <div class="progress progress-striped active"> <div class="bar" style="width: 50%;"></div> </div> </div> </div> <hr></div> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net