前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >分步实现

分步实现

作者头像
用户1437675
发布2018-08-20 11:25:40
4940
发布2018-08-20 11:25:40
举报
文章被收录于专栏:Angular&服务
代码语言:javascript
复制
<ul class="progressbar">
      <li class="active" style="width: 25%;">步骤1</li>
      <li class="active" style="width: 25%;">步骤2</li>
      <li class="" style="width: 25%;">步骤3</li>
      <li class="" style="width: 25%;">步骤4</li>
    </ul>
代码语言:javascript
复制
.progressbar {
    font-family: montserrat, arial, verdana;
    margin: 15px;
    padding: 0;
    text-align: center;
    margin-bottom: 30px;
    overflow: hidden;
    counter-reset: step;
    z-index: 99;
  }
  .progressbar li {
    list-style-type: none;
    font-size: 9px;
    float: left;
    position: relative;
  }
  .progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 20px;
    line-height: 20px;
    display: block;
    font-size: 10px;
    color: #333;
    background: #ebebeb;
    border-radius: 20px;
    margin: 0 auto 5px auto;
  }
  .progressbar li:after {
    content: '';
    width: calc(100% - 20px);
    height: 2px;
    background: #ebebeb;
    position: absolute;
    left: calc((-100% + 20px) / 2);
    top: 9px;
  }
  .progressbar li:first-child:after {
    content: none;
  }
  .progressbar li.active:before,
  .progressbar li.active:after {
    background: #a56428;
    color: white;
  }
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018.04.19 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档