css實現簡單時間軸的執行個體代碼

來源:互聯網
上載者:User
本文主要和大家介紹了前端css實現最基本的時間軸的範例程式碼,分享給大家,給大家做個參考,希望能協助到大家。

原型:

代碼:

<!DOCTYPE html ><html>    <head>        <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">        <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>        <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>        <meta charset="UTF-8">        <title>狀態詳情</title>        <style>            #timeleft p {                height: 65px;                color: #333333;            }                        #timecenter p {                height: 65px;                color: #333333;            }                        #timeright p {                height: 65px;                color: #333333;            }                        #timeright p p {                margin: 0 0 0px;            }                        .cicle1 {                position: absolute;                top: 0px;                left: -10px;                border-radius: 10px;                list-style: none;                width: 20px;                height: 20px;                border: 1px solid #cccccc;                background: #ffffff;            }                        .cicle2 {                position: absolute;                top: 70px;                left: -10px;                border-radius: 10px;                list-style: none;                width: 20px;                height: 20px;                border: 1px solid #cccccc;                background: #ffffff;            }                        .cicle3 {                position: absolute;                top: 140px;                left: -10px;                border-radius: 10px;                list-style: none;                width: 20px;                height: 20px;                border: 1px solid #cccccc;                background: #ffffff;            }                        .cicle4 {                position: absolute;                top: 210px;                left: -10px;                border-radius: 10px;                list-style: none;                width: 20px;                height: 20px;                border: 1px solid #cccccc;                background: #ffffff;            }        </style>        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>    </head>    <body>        <!--右側資訊-->        <p class="col-md-10 col-sm-10 col-xs-10" style="margin-top:30px;">            <p class="col-md-4 col-sm-4 col-xs-4" id="timeleft">                <p>2012-12-24 8:00</p>                <p>2012-12-24 8:00</p>                <p>2012-12-24 8:00</p>                <p>2012-12-24 8:00</p>            </p>            <p class="col-md-4 col-sm-4 col-xs-4" id="timecenter">                <p style="height:212px;  border-left:1px   solid  #366595; position:absolute;  left:65px;">                    <ul>                        <li class="cicle1"></li>                        <li class="cicle2"></li>                        <li class="cicle3"></li>                        <li class="cicle4"></li>                    </ul>                </p>            </p>            <p class="col-md-4 col-sm-4 col-xs-4" id="timeright">                <p>                    <p>完工交車</p>                    <p>1小時</p>                </p>                <p>                    <p>完工交車</p>                    <p>1小時</p>                </p>                <p>                    <p>完工交車</p>                    <p>1小時</p>                </p>                <p>                    <p>完工交車</p>                    <p>1小時</p>                </p>            </p>        </p>    </body></html>
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.