简体   繁体   English

在水平进度条上引导多个条

[英]Bootstrap multiple bars on horizontal progress bar

Does anyone knows how to come up with a bar like this on Bootstrap? 有人知道如何在Bootstrap上提出类似这样的栏吗?

同意吧

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM