css+div多步驟進度條的實現代碼

來源:互聯網
上載者:User
本篇文章主要介紹了多步驟進度條的實現原理及代碼,具有很好的參考價值。下面一起來看下吧

今天在工作的時候寫了一個多步驟進度條的代碼,在此跟大家分享一下!

代碼展示:

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>step</title></head><style>    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; }</style><body><p class="flow_steps clearfix">    <ul class="clearfix steps">        <li class=" done first current_prev ">            第一步        </li>        <li class=" current">            第二步        </li>        <li class=" ">            第三步        </li>        <li class=" last">            第四步        </li>    </ul></p></body></html>

以上就是本文的全部內容,希望對大家的學習有所協助,更多相關內容請關注topic.alibabacloud.com!
相關文章

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.