阅读进度、上传进度都适用。
<div class="pbar"><i></i></div>.pbar {
width: 200px; height: 3px;
background: #e8eef8; border-radius: 99px;
overflow: hidden;
}
.pbar i {
display: block; width: 62%; height: 100%;
border-radius: 99px;
background: linear-gradient(90deg, #2b57ff, #7a4bff);
}复制后可直接使用;如果要放进已有项目,注意把类名改成你项目里的命名,避免冲突。