首页 >web前端 >css教程 >纯css3实现物流状态持续更新的实例代码

纯css3实现物流状态持续更新的实例代码

零下一度
零下一度原创
2017-05-17 17:30:482377浏览

代码片段,纯css3实现物流状态持续更新的实例代码,特地分享如下。

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title></title>
        <style>
            body{font-size: 12px;}
            ul li{list-style: none;}
            .track-rcol{width: 900px; border: 1px solid #eee;}
            .track-list{margin: 20px; padding-left: 5px; position: relative;}
            .track-list li{position: relative; padding: 9px 0 0 25px; line-height: 18px; border-left: 1px solid #d9d9d9; color: #999;}
            .track-list li.first{color: red; padding-top: 0; border-left-color: #fff;}
            .track-list li .node-icon{position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; background: url(http://demo.daimabiji.com/3531/img/order-icons.png)  -21px -72px no-repeat;}
            .track-list li.first .node-icon{background-position:0 -72px;}
            .track-list li .time{margin-right: 20px; position: relative; top: 4px; display: inline-block; vertical-align: middle;}
            .track-list li .txt{max-width: 600px; position: relative; top: 4px; display: inline-block; vertical-align: middle;}
            .track-list li.first .time{margin-right: 20px; }
            .track-list li.first .txt{max-width: 600px; }
        </style>
    </head>
    <body>
        <div class="track-rcol">
            <div class="track-list">
                <ul>
                    <li class="first">
                        <i class="node-icon"></i>
                        <span class="time">2016-03-10 18:07:15</span>
                        <span class="txt">感谢您在京东购物,欢迎您再次光临!</span>
                    </li>
                    <li>
                        <i class="node-icon"></i>
                        <span class="time">2016-03-10 18:07:15</span>
                        <span class="txt">【京东到家】京东配送员【申国龙】已出发,联系电话【18410106883,感谢您的耐心等待,参加评价还能赢取京豆呦】</span>
                    </li>
                    <li>
                        <i class="node-icon"></i>
                        <span class="time">2016-03-10 18:07:15</span>
                        <span class="txt">感谢您在京东购物,欢迎您再次光临!</span>
                    </li>
                    <li>
                        <i class="node-icon"></i>
                        <span class="time">2016-03-10 18:07:15</span>
                        <span class="txt">感谢您在京东购物,欢迎您再次光临!</span>
                    </li>
                    <li>
                        <i class="node-icon"></i>
                        <span class="time">2016-03-10 18:07:15</span>
                        <span class="txt">感谢您在京东购物,欢迎您再次光临!</span>
                    </li>
                    <li>
                        <i class="node-icon"></i>
                        <span class="time">2016-03-10 18:07:15</span>
                        <span class="txt">感谢您在京东购物,欢迎您再次光临!</span>
                    </li>
                </ul>
            </div>
        </div>
    </body>
</html>

【相关推荐】

1. 特别推荐“php程序员工具箱”V0.1版本下载

2. 免费css在线视频教程

3. php.cn独孤九贱(2)-css视频教程

以上是纯css3实现物流状态持续更新的实例代码的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn