欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基于html和CSS3制作簡(jiǎn)單側(cè)邊導(dǎo)航欄

  發(fā)布時(shí)間:2016-02-25 16:09:26   作者:佚名   我要評(píng)論
本篇文章給大家分享基于html和CSS3制作簡(jiǎn)單側(cè)邊導(dǎo)航欄,效果簡(jiǎn)單大方,需要的朋友可以從參考下

本文為大家分享了一個(gè)側(cè)邊導(dǎo)航欄css示例,供大家參考,具體內(nèi)容如下

效果圖:

html:

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <div class="sidebar">  
  2.     <ul>  
  3.         <li>優(yōu)先級(jí)   
  4.              <ul>  
  5.                 <li><aonclickaonclick=""class="sidebar-selected">全部</a></li>  
  6.                 <li><aonclickaonclick="">P1</a></li>  
  7.                 <li><aonclickaonclick="">P2</a></li>  
  8.                 <li><aonclickaonclick=“" >P3</a></li>  
  9.                 <li><aonclickaonclick="">P4</a></li>  
  10.             </ul>  
  11.         </li>  
  12.     </ul>  
  13. </div>  
  14.   

css:

CSS Code復(fù)制內(nèi)容到剪貼板
  1. .sidebar {   
  2.     border-right1px solid #f0f2f1;   
  3.     width180px;   
  4.     floatleft;   
  5.     padding-left35px;   
  6. }   
  7.   
  8. .sidebar>ul {   
  9.     list-stylenone;   
  10.     padding: 0;   
  11.     margin: 0;   
  12. }   
  13.   
  14. .sidebar>ul>li {   
  15.     font-size18px;   
  16.     font-weight: 400;   
  17.     padding0010px;   
  18.     margin-top5px;   
  19. }   
  20.   
  21. .sidebar>ul>li>ul {   
  22.     border-top1px dashed rgba(0,0,0,0.1);   
  23.     displayblock;   
  24.     list-stylenone;   
  25.     margin5px010px0;   
  26.     padding10px0010px;   
  27.     font-size14px;   
  28.     max-height138px;   
  29.     overflowauto;   
  30. }   
  31.   
  32. .sidebar a {   
  33.     line-height: 1.5;   
  34. }   
  35.   
  36. .sidebar a:hover {   
  37.     color#e74430;   
  38.     cursor:pointer;   
  39. }   
  40.   
  41. .sidebar-selected {   
  42.      color#e74430;   
  43. }   

以上就是css側(cè)邊導(dǎo)航欄實(shí)例講解,希望對(duì)大家學(xué)習(xí)制作導(dǎo)航欄有所幫助。

相關(guān)文章

最新評(píng)論