CSS implementation drop-down menu effect

Source: Internet
Author: User

<! DOCTYPE html>


<meta charset= "gb2312"/>
<title>css drop-down menu instance module-www.divcss5.com</title>
<style>
Body,ul,li{background-color:white;font-size:12px;font-family:arial, Helvetica, sans-serif;margin:0px; padding:0px ;}
a{color: #000000; text-decoration:none;}
Body{text-align:center;}

Li{display:inline;list-style:none;list-style-position:outside;text-align:center;font-weight:bold;float:left;}
. List A:link{color: #336601; text-decoration:none;float:left;width:100px;padding:3px 5px 0px 5px;}
. List A:visited{color: #336601; text-decoration:none;float:left;padding:3px 5px 0px 5px;width:100px;}
. list a:hover{color:white;float:left;padding:3px 3px 0px 20px;width:88px;text-decoration:none;background-color:# 539D26;}
. list a:active{color:white;float:left;padding:3px 3px 0px 20px;width:88px;text-decoration:none;background-color:# BD06B4;}
#nav {width:600px;height:30px; margin:0 auto;padding:0px 5px; text-align:center; clear:both;}
. List{line-height:20px;text-align:left;padding:4px;font-weight:normal;}
. menu1{width:120px;height:auto;margin:6px 4px 0px 0px;border:1px solid #9CDD75; Background-color: #F1FBEC; color:# 336601;padding:6px 0px 0px 0px;cursor:hand;overflow-y:hidden;filter:alpha (opacity=70);-moz-opacity:0.7;}
. menu2{width:120px;height:18px;margin:6px 4px 0px 0px;background-color: #F5F5F5; color: #999999; border:1px solid # eee8dd;padding:6px 0px 0px 0px;overflow-y:hidden;cursor:hand;}
</style>

<body>
<div id= "NAV" >
<ul>
<li class= "menu2" onmouseover= "this.classname= ' menu1 '" onmouseout= "this.classname= ' menu2 '" >div+css
<div class= "List" >
<a href= "http://www.divcss5.com/" >div css</a><br/>
<a href= "#" > My home </a><br/>
<a href= "#" > My log </a><br/>
<a href= "#" > My log </a><br/>
<a href= "#" > My albums </a><br/>
<a href= "#" > My favorites </a><br/>
</div>
</li>
<li class= "menu2" onmouseover= "this.classname= ' menu1 '" onmouseout= "this.classname= ' menu2 '" ><a href= "http ://www.divcss5.com/html/">html Getting Started </a>
<div class= "List" >
<a href= "http://www.divcss5.com/html/" >html Getting Started </a><br/>
<a href= "http://www.divcss5.com/html/h5.html" >html is what </a><br/>
<a href= "#" > My log </a><br/>
<a href= "#" > My albums </a><br/>
<a href= "#" > My favorites </a><br/>
</div>
</li>
<li class= "menu2" onmouseover= "this.classname= ' menu1 '" onmouseout= "this.classname= ' menu2 '" ><a href= "http ://www.divcss5.com/rumen/">css Getting Started </a>
<div class= "List" >
<a href= "http://www.divcss5.com/" >divcss5</a><br/>
<a href= "#" > My albums </a><br/>
<a href= "#" > My favorites </a><br/>
</div>
</li>
<li class= "menu2" onmouseover= "this.classname= ' menu1 '" onmouseout= "this.classname= ' menu2 '" ><a href= "http ://www.divcss5.com/css-hack/">css hack</a>
<div class= "List" >
<a href= "http://www.divcss5.com/" >div+css</a><br/>
<a href= "#" > My home </a><br/>
<a href= "#" > My log </a><br/>
<a href= "#" > My albums </a><br/>
<a href= "#" > My favorites </a><br/>
</div>
</li>
</ul>
</div><br/>
<br/>
<br/><br/>
<br/>

<br/>
<br/>

</body>

CSS implementation drop-down menu effect

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.