3 个回答
<!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>

在这个上面做一下修改

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题