在bootstrap栅格系统中使用进度条及其样式详解

作者(出处):百宝箱工作室发布时间:2018年4月7日 15:40:26查阅量:342

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width,initial-scale=1" />
		<link rel="stylesheet" href="css/bootstrap.css" />
		<title></title>
	</head>
	<body>
	<!--
        	作者:百宝箱工作室      微课堂教学QQ:425680248
        	时间:2018-04-07
        	描述:进度条及其样式
        	progress样式要放置在进度条的父级元素,progress-bar用于实现进度条。
        	progress-bar-danger、progress-bar-info、progress-bar-success、progress-bar-warning是进度条的样式。
        	progress-bar-striped和active结合使用实现滚动的进度条。
        	带堆叠效果的进度条要保证堆叠后的百分比不能超过100%。
        -->
		<div class="container">
			<div class="row">
				<div class="progress">
					<div class="progress-bar" style="width: 45%;">45%</div>
				</div>
				<div class="progress">
					<div class="progress-bar progress-bar-danger" style="width: 45%;">45%</div>
				</div>
				<div class="progress">
					<div class="progress-bar progress-bar-info" style="width: 95%;">95%</div>
				</div>
				<div class="progress">
					<div class="progress-bar progress-bar-success" style="width: 69%;">69%</div>
				</div>
				<div class="progress">
					<div class="progress-bar progress-bar-warning" style="width: 11%;">11%</div>
				</div>
				<!--带条纹的进度条-->
				<div class="progress">
					<div class="progress-bar progress-bar-success progress-bar-striped" style="width: 78%;">78%</div>
				</div>
				<!--条纹会动的进度条-->
				<div class="progress">
					<div class="progress-bar progress-bar-success progress-bar-striped active" style="width: 98%;">98%</div>
				</div>
				<!--带堆叠效果的进度条-->
				<div class="progress">
					<div class="progress-bar" style="width: 25%;">25%</div>
					<div class="progress-bar progress-bar-danger" style="width: 25%;">25%</div>
					<div class="progress-bar progress-bar-info" style="width: 5%;">5%</div>
					<div class="progress-bar progress-bar-success" style="width: 15%;">15%</div>
					<div class="progress-bar progress-bar-warning" style="width: 10%;">10%</div>
					<div class="progress-bar progress-bar-striped active" style="width: 20%;">20%</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery-2.1.0.js" ></script>
		<script type="text/javascript" src="js/bootstrap.js" ></script>
	</body>
</html>
百宝箱网络工作室  版权所有  
站长QQ:1617818397  站长E-mail:1617818397@qq.com
Powered by www.baibaox.com  Copyright © 2011-2099
点击这里给我发消息