前端 javascript css实现进度条 - left: 50%
预期样式
方法一
方法二
.process-box {
position: relative;
width: 558px;
.process-bar {
position: relative;
width: 558px;
height: 14px;
margin-top: 10px;
overflow: hidden;
// background: #253959;
background-image: url("@/assets/processBgColor.png");
background-repeat: no-repeat;
// background-size: 100% 14px;
// background: linear-gradient(270deg, #44b5ff 0%, #44b2fc 100%);
border: 1px solid #415677;
border-radius: 8px;
.process-mask {
position: absolute;
width: 558px;
height: 14px;
// background: #253959; 拼多多帮助力入口
background-image: url("@/assets/processBg.png");
}
}
.process-dot {
position: absolute;
top: 0;
left: 50%;
z-index: 3;
width: 15px;
height: 15px;
background: #ffffff;
border: 2px solid #44b1fb;
border-radius: 50%;
box-shadow: -2px 0 4px 0 rgb(5 29 59 / 50%);
}
}
精彩内容