最佳答案
尝试使用 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>
关于html - CSS使右边框对 Angular 线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40098769/