* { margin:0; padding:0; } .scroll { margin-left:100px; margin-top:100px; width:600px; height:5px; background:#ccc; position:relative; } .bar { width:8px; height:18px; border:2px solid #22b9e9; background-color:#FFFFFF; position:absolute; top:-8px; left:0px; cursor:pointer; } .mask { position:absolute; left:0; top:0; background:#22b9e9; width:0; height:5px; }
进度条主要使用js实现的,代码不是太多看看就好啦,再放在代码里面套用一下就好了,刻度我用的方法比较弱智,直接是span加div定位写的,刻度是按照比例算的,要是有更好的解决办法记得私信我呀