bootstarp進度條樣式
阿新 • • 發佈:2019-02-17
bootstarp中的進度條樣式
把裡面的min.css中的內容拿出來,作為單獨樣式
.progress.active .progress-bar, .progress-bar.active {
-webkit-animation: progress-bar-stripes 2s linear infinite;
-o-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 0.2s linear infinite;
}
.progress-striped .progress-bar, .progress-bar-striped {
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%,
transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%,
rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
background-size: 40px 40px;
}
.progress-bar {
float: left;
width: 100%;
height:27px;
font-size: 12px;
line-height: 20px;
color: #fff;
text-align: center;
background-color: #337ab7 ;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
-webkit-transition: width .6s ease;
-o-transition: width .6s ease;
transition: width .6s ease;
}
@keyframes progress-bar-stripes{
from{background-position:40px 0}
to{background-position:0 0}
}
.progress-value{
float: left;
padding-left: 13px;
font-weight: bold;
}
---------------------------------------------------------------------------------
<div wicket:id="busy" class="progress-bar progress-bar-info progress-bar-striped active">
<div class="progress-value">進度條展示</div>
</div>