2016-10-13 4 views

답변

1

여기 jsfiddle

div 
{ 
    height:50px; 
    width:100%; 
    background: repeating-linear-gradient(90deg, 
     transparent, transparent .25em /* black stripe */, 
     #EA9949 0, #EA9949 .75em /* blue stripe */ 
    ); 
} 

업데이트

이다가 큰 Diptox있어 jsfiddle

function setProgressbarValue(currentValue,MaxValue) 
{ 
    var percentage = ((currentValue/MaxValue) * 100) ; 
    if (percentage <= 0) 
     percentage = 0; 
    else if (percentage >= 100) 
     percentage = 100; 
    return parseInt(percentage); 
} 
+0

를 작동하는 방법이다. 그러나 나는 그것이 무언가를 만들어서 그것이 순진적 이도록 어떻게 만들 수 있습니까? 데이터베이스에서 데이터에 따라 막대, 두 번째 막대, 세 번째 ...에서 시작하는 것과 같습니다. – trinidado

+0

내 대답 업데이트를 확인하십시오 – Diptox

+0

감사. 내가 찾고 있었던 것. – trinidado

관련 문제