步骤进度条 css

用css写一个简单的步骤进度条

html代码:

<h4>南京游玩</h4>
 <ul class="step-list">
    <li>
        <span class="step">第一天</span>
        <div class="content">中山陵</div>    
    </li>
    <li>
        <span class="step">第二天</span>
        <div class="content">夫子庙</div>
    </li>
    <li>
        <span class="step">第三天</span>
        <div  class="content">总统府</div>
    </li>
    <li>
        <span class="step">第四天</span>
        <div class="content">牛首山</div>
    </li>
    <li class="latest">
        <span class="step">第五天</span>
        <div class="content">图书馆(哈哈)</div>
    </li>
 </ul>
View Code

 

css代码:

<style>
    .step-list{
         margin:0;
        padding:0;
        margin-left:12px;
        margin-top:-9px;
        padding-left:10px;
        list-style:none;
        font-size:12px
    }
    .step-list li{
        height:60px;
        border-left:1px solid #d9d9d9
    }
    .step-list li:before{
        content:'';
        border:5px solid #f3f3f3;
        background-color:green;
        display:inline-block;
        width:10px;
        height:10px;
        border-radius:50%;
        margin-left:-10px;
        margin-right:10px
    }
    .step-list .step{
        font-weight:700;
        margin-right:8px;
        font-family:Arial
        }
    .step-list .content{
        display:inline-block;
        width:653px;
        vertical-align:text-top;
        line-height:1.3em
    }

    .step-list .latest{
        border:none;
    }
    .step-list .latest:before{
        background-color:#fe4300;
        border-color:#f8e9e4
    }
    </style>
View Code

 

转载于:https://www.cnblogs.com/Dear/p/5783101.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值