Bootstrap基本组件学习笔记之进度条(15)_Javascript教程-查字典教程网
Bootstrap基本组件学习笔记之进度条(15)
Bootstrap基本组件学习笔记之进度条(15)
发布时间:2016-12-30 来源:查字典编辑
摘要:Bootstrap提供了各式各样的进度条。看下面的例子:进度条进度条progress-bar-info(20%)progress-bar-s...

Bootstrap提供了各式各样的进度条。

看下面的例子:

<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="../../css/bootstrap.min.css" rel="stylesheet"> <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> <script src="../../js/bootstrap.min.js"></script> <title>进度条</title> </head> <body> <div> <div> <div> <h1>进度条</h1> </div> <div> <div> <div>progress-bar-info(20%)</div> </div> <div> <div>progress-bar-success(60%)</div> </div> <div> <div>progress-bar-danger(35%)</div> </div> <div> <div>progress-bar-warning(90%)</div> </div> <div> <div>progress-bar-striped(66%)</div> </div> <div> <div>progress-bar-warning(35%)</div> <div>progress-bar-danger(25%)</div> <div>progress-bar-info(30%)</div> </div> </div> </div> </div> </body> </html>

效果如下:

其中下面的一段产生了动态效果:

<div> <div>progress-bar-warning(66%)</div> </div>

下面一段产生了叠加效果:

<div> <div>progress-bar-warning(35%)</div> <div>progress-bar-danger(25%)</div> <div>progress-bar-info(30%)</div> </div>

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新Javascript教程学习
    热门Javascript教程学习
    编程开发子分类