<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
*{
margin: 0;
padding: 0;
}
.step{
position: relative;
width: 40px;
height: 40px;
float: left;
margin-right: 100px;
background-color: #ccc;
border-radius: 50%;
}
.step:after{
position: absolute;
display: block;
content: '';
width: 100px;
height: 4px;
top: 18px;
left: 40px;
background-color: #ccc;
}
.end{
width: 40px;
height: 40px;
float: left;
background-color: #ccc;
border-radius: 50%;
}
.step.active{
background-color: #00ee00;
}
.step.active:after{
background-color: #00ee00;
}
</style>
</head>
<body>
<div class="step step-1 active"></div>
<div class="step step-2"></div>
<div class="step step-3"></div>
<div class="end step-end"></div>
</body>
</html>
在这个上面做一下修改
3 回答5.2k 阅读✓ 已解决
5 回答2k 阅读
3 回答1.5k 阅读✓ 已解决
2 回答1.9k 阅读✓ 已解决
3 回答1.1k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.5k 阅读
用jquery slider
http://jqueryui.com/slider/#d...
http://jqueryui.com/slider/#r...