[英]Bootstrap multiple bars on horizontal progress bar
here is a jsfiddle 这是一个jsfiddle
div
{
height:50px;
width:100%;
background: repeating-linear-gradient(90deg,
transparent, transparent .25em /* black stripe */,
#EA9949 0, #EA9949 .75em /* blue stripe */
);
}
Update 更新资料
here is how to make it works jsfiddle 这是如何使其工作jsfiddle
function setProgressbarValue(currentValue,MaxValue)
{
var percentage = ((currentValue/MaxValue) * 100) ;
if (percentage <= 0)
percentage = 0;
else if (percentage >= 100)
percentage = 100;
return parseInt(percentage);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.