在 Bootstrap 中为条纹进度条设置动画
要为条纹进度条设置动画,请在 Bootstrap 中使用 .active 类和 .progress-bar 类。
您可以尝试运行以下代码来为条纹进度条设置动画
示例
<!DOCTYPE html><html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Level</h2>
<p>The level of water in meters:</p>
<div class = "progress">
<div class = "progress-bar progress-bar-striped active" role = "progressbar" aria-valuenow = "20" aria-valuemin = "0" aria-valuemax = "100" style = "width:40%">
20%
</div>
</div>
</div>
</body>
</html>
以上是 在 Bootstrap 中为条纹进度条设置动画 的全部内容, 来源链接: utcz.com/z/335635.html