css怎么有多余的进度条,css+div多步骤进度条的实现代码

本篇文章主要介绍了多步骤进度条的实现原理及代码,具有很好的参考价值。下面一起来看下吧

今天在工作的时候写了一个多步骤进度条的代码,在此跟大家分享一下!

效果图:

1727105301577594c44f243bc830d2cf.png

代码展示:

step

ul,li{list-style:none;}

.flow_steps{height:55px;width:1000px;margin:100px auto;}

.flow_steps .steps{padding-left:0;}

.flow_steps ul li { float:left; height:55px; padding:0 70px 0 50px; line-height:55px; text-align:center; background:url(http://7xnlea.com2.z0.glb.qiniucdn.com/stepbg.png) no-repeat 100% 0 #E4E4E4;font-family: "microsoft yahei";color:#6C6C6C;}

.flow_steps ul li.done { background-position:100% 0px; background-color:#E1E1E1;}

.flow_steps ul li.current_prev { background-position:100% -55px; background-color:#E1E1E1;}

.flow_steps ul li.current { color:#fff; background-color:#DD4D3C;}

.flow_steps ul li.last { background-image:none;}

.flow_steps ul li.first { border-radius:10px 0 0 10px; }

.flow_steps ul li.last { border-radius:0 10px 10px 0; }

  • 第一步

  • 第二步

  • 第三步

  • 第四步

以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注PHP中文网!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值