Use CSS double sliding door technology to implement level navigation menu of three-state glass Effect

Source: Internet
Author: User
<!  Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "http://www.w3.org/TR/html4/loose.dtd"  >  <  Html  >  <  Head  >  <  Meta  HTTP-equiv  = "Content-Type"  Content  = "Text/html; charsets = UTF-8" >  <  Title  > Use a double sliding door to implement a three-state glass effect menu </  Title  >  <  Style  Type  = "Text/CSS"  >  . Menu ul  {  Font-family :  Arial  ;  Font-size  :  14px  ;  Padding  :  0 0 0 8px  ;  Margin :  0 auto  ;  List-style  :  None  ;  Height  :  35px  ;  White-space :  Nowrap  ;  // Prevents ie from being broken between the menu items  }  . Menu ul Li  {  Float  :  Left  ;  Margin :  0 2px  ;  }  . Menu ul Li  {  Display  :  Block  ;  Float  : Left  ;  Line-height  :  35px  ;  Color  :  #666666  ;  Text-Decoration  : None  ;  Padding  :  0 0 0 14px  ;  Background  :  Url(three-state-navi-background.gif)  ;  } . Menu ul Li a B  {  Display  :  Block  ;  Padding  :  0 14px 0 0  ;  Background :  Url(three-state-navi-background.gif) No-repeat right top  ;  }  . Menu ul Li A: hover  {  Color  :  # Ffffff  ;  Background :  Url(three-state-navi-background.gif) No-repeat left center  ;  }  . Menu ul Li A: hover B  {  Background  :  Url(three-state-navi-background.gif) No-repeat right center  ; }  . Menu ul Li. Current  {  // Set the color of the menu item of the current page Link  :  # Ffffff  ;  Background  :  Url(three-state-navi-background.gif) No-repeat left bottom  ; }  . Menu ul Li. Current A B  {  Background  :  Url(three-state-navi-background.gif) No-repeat right bottom  ;  }  . Menu ul Li. Current A: hover  {  Background :  Url(three-state-navi-background.gif) No-repeat left bottom  ;  Cursor  :  Default  ;  }  . Menu ul Li. Current A: hover B  {  Background :  Url(three-state-navi-background.gif) No-repeat right bottom  ;  }  </  Style  >  </  Head  >  <  Body  >  <  Div Class  = "Menu"  >  <  Ul  >      <  Li  > <  A  Href  = "#"  > <  B  > Home </  B > </  A  > </  Li  >      <  Li  > <  A  Href  = "#"  > <  B  > Connect </  B  > </ A  > </  Li  >      <  Li  > <  A  Href  = "#"  > <  B  > Web Dev </  B  > </  A > </  Li  >      <  Li  > <  A  Href  = "#"  > <  B  > Web design </  B  > </  A  > </ Li  >      <  Li  Class  = "Current"  > <  A  Href  = "#"  > <  B  > Map </  B  > </  A > </  Li  >  </  Ul  >  </  Div  >  </  Body  >  </  Html  > 

Material download: http://files.cnblogs.com/likebeta/201205292523211.zip

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.