答案 0 :(得分:4)
尝试使用border
.progressbar{
position: relative;
overflow: hidden;
height: 10px;
background: #eee;
}
.progressbar > i{
position: absolute;
width: 60%;
border-top: 10px solid #0bf; /* same as parent height */
border-right: 3px solid transparent; /* diagonality :) */
}
<div class="progressbar"><i></i></div>