純CSS 箭頭流程,網上找的,留著備用

來源:互聯網
上載者:User

標籤:style   io   ar   color   os   sp   for   on   div   

 無意之中看到一個純CSS做的箭頭導航(流程式),收藏一下,以備不時之需

 實際效果

                                                     

  • 步驟一
  • 步驟二
  • 步驟三
  • 步驟四

 

 原始碼:

   HTML:

    <div class="wrapper">

   <ul class="flow-steps">

     <li><b class="f"></b><a href="#">步驟一</a><s></s></li>

      <li class="on"><b></b><a href="#">步驟二</a><s></s></li>

         <li><b></b><a href="#">步驟三</a><s></s></li>

         <li><b></b><a href="#">步驟四</a><s></s></li>

    </ul>

</div>

  CSS:

    .wrapper{ padding:20px;}

    .flow-steps{ position:relative; height:30px; list-style:none; font-size:14px; overflow:hidden;}

    .flow-steps li{ float:left; height:30px; margin-right:-32px; background:#d7d7d7; line-height:30px; overflow:hidden;}

  .flow-steps a{ display:block; float:left; width:80px; padding: 0 18px 0 0; text-align:center; color:#333; text-decoration:none;}

  .flow-steps b{ float:left; width:0px; height:0px; margin-top:-6px; border:21px solid #d7d7d7; border-left-color:#fff; font-size:0; line-height:0; z-index:9;}

  .flow-steps s{ position:relative; float:left; width:0px; height:0px; margin-top:-2px; border:17px solid transparent; /*For IE6*/ _border-color:snow; _filter:chroma(color=snow);/*For IE6*/ border-left-color:#d7d7d7; font-size:0; line-height:0; z-index:99;}

  .flow-steps .on{ background:#ff6600;}

  .flow-steps .on a{ color:#fff;}

  .flow-steps .on b{ border-color:#ff6600; border-left-color:#fff; }

  .flow-steps .on s{ border-left-color:#ff6600;}

  .flow-steps .f{ border-color:#d7d7d7!important;}

   

 

純CSS 箭頭流程,網上找的,留著備用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.