.progress {
padding: 6px;
background: rgba(0, 0, 0, 0.5);/* background: #000; 这里是黑色 最后多一个a是透明度 半黑*/
border-radius: 6px;/*矩形框框的圆角 */
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);/*阴影*/
}
最后修改
.progress-bar {
border: 1px solid rgba(0, 0, 0, 0.5);
}
.progress {
width: 0;
background: rgba(0, 0, 0, 0.9);
height: 6px;
}
https://m.jb51.net/css/750133.html
计划是
进度条一开始是黑色的 走完是白的
但是没有办法设置一开始的颜色