adminLTE 教程 -7 进度条

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了adminLTE 教程 -7 进度条相关的知识,希望对你有一定的参考价值。

其实进度条需要注意的几点:

1、横竖 style="width: 40%" or  style="height: 40%"

2、样式:progress-bar-success

3、宽度:progress-sm 

4、动态效果:active

技术分享

<div class="box box-solid">
	<div class="box-header with-border">
			<h3 class="box-title">Progress Bars Different Sizes</h3>
	</div>
	<!-- /.box-header -->
	<div class="box-body text-center">
			<p><code>.progress</code></p>

			<div class="progress">
					<div class="progress-bar progress-bar-primary progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
							<span class="sr-only">40% Complete (success)</span>
					</div>
			</div>
			<p>Class: <code>.sm</code></p>

			<div class="progress progress-sm active">
					<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
							<span class="sr-only">20% Complete</span>
					</div>
			</div>
			<p>Class: <code>.xs</code></p>

			<div class="progress progress-xs">
					<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
							<span class="sr-only">60% Complete (warning)</span>
					</div>
			</div>
			<p>Class: <code>.xxs</code></p>

			<div class="progress vertical progress-xxs">
					<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
							<span class="sr-only">60% Complete (warning)</span>
					</div>
			</div>
			<div class="progress vertical active">
					<div class="progress-bar progress-bar-primary progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="height: 40%">
							<span class="sr-only">40%</span>
					</div>
			</div>
			<div class="progress vertical progress-sm">
					<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="height: 100%">
							<span class="sr-only">100%</span>
					</div>
			</div>
			<div class="progress vertical progress-xs">
					<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="height: 60%">
							<span class="sr-only">60%</span>
					</div>
			</div>
			<div class="progress vertical progress-xxs">
					<div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="height: 60%">
							<span class="sr-only">60%</span>
					</div>
			</div>
	</div>
	<!-- /.box-body -->
</div>


以上是关于adminLTE 教程 -7 进度条的主要内容,如果未能解决你的问题,请参考以下文章

自定义对话框片段内的进度条 - 如何从 AsyncTask 传递进度?

在recyclerview片段Reandroid中屏幕旋转后进度条不显示

css Bootstrap 3进度条片段

进度条不隐藏是当数据在片段中的recyclerview中加载时

用于 onActivityCreated 中通用图像加载器的片段中进度条的 NullPointerException

adminLTE 教程 -2 配置文件 app.js详解