<!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>
在这个上面做一下修改
5 回答1.4k 阅读
5 回答1.1k 阅读✓ 已解决
2 回答858 阅读✓ 已解决
4 回答949 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
2 回答829 阅读✓ 已解决
用jquery slider
http://jqueryui.com/slider/#d...
http://jqueryui.com/slider/#r...