2014-02-17 115 views
0

我不完全确定它是否可能。但我想删除此进度条的灰色地带:进度条消除灰色

enter image description here

progress, progress[role] { 
    border: none; 
    background-size: auto; 
    height: 24px; 
    background-color: green; 
    width: 100%; 
} 
.skill-list { 
    list-style: none; 
    margin: 0; 
    padding: 1em; 
} 
.skill { 
    margin-bottom: 1em; 
    position: relative; 
} 
.skill h5 { 
    color: #fff; 
    left: 1em; 
    line-height: 1; 
    position: absolute; 
    top: -10px; 
    text-transform: uppercase; 
} 
.skill ::-webkit-progress-value { 
    -webkit-animation: bar-fill 2s; 
    width: 0px; 
} 
.skill-1::-webkit-progress-value { 
    background: #ff9e2c; 
    border-radius: 5px; 
} 
.skill-1::-moz-progress-bar { 
    background: #ff9e2c; 
    border-radius: 5px; 
} 
.skill-2::-webkit-progress-value { 
    background: #4ecdc4; 
    border-radius: 5px; 
} 
.skill-2::-moz-progress-bar { 
    background: #4ecdc4; 
} 
.skill-3::-webkit-progress-value { 
    background: #ff6b6b; 
    border-radius: 5px; 
} 
.skill-3::-moz-progress-bar { 
    background: #ff6b6b; 
    border-radius: 5px; 
} 
@-webkit-keyframes bar-fill { 
    0% { 
     width: 50px; 
    } 
} 
@keyframes bar-fill { 
    0% { 
     width: 50px; 
    } 
} 

这可能吗?

+0

对我们现场演示一起工作呢? –

+0

http://jsfiddle.net/WQ7ch/ yeah – TrippedStackers

+0

@TrippedStackers它在你的小提琴中是绿色的.. – CRABOLO

回答

1

只需添加这些:

progress[value]::-webkit-progress-bar { 
    background-color: #FFF; 
} 

progress::-moz-progress-bar { 
    background: #FFF; 
} 

例子:http://jsfiddle.net/WQ7ch/1/