Three-level menu made by CSS

Source: Internet
Author: User
Tags website server
Tip: you can modify some code before running

<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>Three-level menu made by CSS</title><style type="text/css"><!--body {font-family: Arial, Helvetica, sans-serif;font-size: 11px;margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;}#menu {background-color: #FEF0E5;filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#FEF0E5', gradientType='0');}#nav, #nav ul {float:left; /* 菜单总体水平位置 */clear:right; list-style:none;/*line-height:22px; 一级菜单高 *//*background: #eee; 所有菜单移出色 *//*font-weight: bold;8*/padding:0px;margin:0px;/*border:1px solid #ccc;border-right: 0px;*/}#nav ul ul{/*border:1px solid #ccc;*/border-top:0px;border-right:0px;}#nav a {width:120px;display:block;color:#333;text-decoration:none;text-align:left;/*border-right:1px solid #CCC;*/padding: 3px 4px 3px 7px;}#nav a:hover{color:#000;border:1px solid #CCC;margin: 0px;padding: 3px 5px 3px 6px;background-color: #f1f1f1;text-decoration: none;} /* 所有 a:hover 字体样式 */#nav a.selected{background:url(flyout_arrow.gif) no-repeat right 50%;} /* 下拉图标 */#nav li {float:none;clear:right;height:22px;width:120px;}#nav li ul li{float:none;clear:right;height:22px;width:120px;}#nav li ul { /* 二级弹出位 */position:absolute; margin:-22px 0px 0px 119px;padding:0;left:-9999em;width:120px;font-weight:normal;display:block;border:1px solid #CCCCCC;background:#fff;} /* 二级菜单宽 */#nav li ul a {width:120px; /* 二级菜单宽 *//*line-height:24px; 二级菜单高 border:1px solid #CCC;*/height:22px;text-align:left; margin: 0px;}#nav li ul ul {margin:-22px 0px 0px 120px;border:1px solid #CCC;} /* 三级弹出位 */#nav li:hover ul ul,#nav li.sfhover ul ul{left:-9999em;}#nav li:hover ul,#nav li li:hover ul,#nav li.sfhover ul, #nav li li.sfhover ul{left:auto;height:22px;} /* 所有弹出菜单自动左边距 */#nav li:hover, #nav li.sfhover {background:#f1f1f1;height:22px;} /* 所有悬浮样式 */--></style><script type="text/javascript"><!--//--><![CDATA[//><!--img1=new Image();img1.src="flyout_arrow.gif";sfHover = function() {var sfEls = document.getElementById("nav").getElementsByTagName("LI");for (var i=0; i<sfEls.length; i++) {sfEls[i].onmouseover=function() {this.className+=" sfhover";}sfEls[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" sfhover"), "");}}}window.onload=sfHover;//--><!]]></script></head><body><table width="120" border="0" cellspacing="0" cellpadding="0" > <tr> <td valign="top" id="menu"><ul id="nav"><li>Homepage</li><li>Project requirement cooperation<ul><li >Website Project<ul> <li>Website Project<li>Whole site project</li> <li>Website Analysis Planning</li> <li>Webpage design and production</li> <li>Website production and development</li> <li>Website flash animation</li> <li>Website server</li> </ul></li><li >Multimedia design and production<ul> <li>Website Project<li>Graphic design</li> <li>CAD engineering drawing design</li> <li>3D modeling and animation</li> <li>Flash game animation</li> <li>Sound effects and music</li> <li>Game original drawing settings</li> </ul></li><li >Software development<ul> <li>Application software</li> <li>Game development</li> <li>Driver</li> <li>Embedded Development</li> <li>Mobile Development</li> <li>Single Chip Microcomputer</li> <li>Database Design</li> <li>Code porting</li> </ul> </li><li>Network Hardware</li></ul></li><li>Information and Knowledge<ul><li>Information and Knowledge<ul><li>Practical information and tools</li><li>News</li><li>Knowledge and skills</li><li>Design, production, and appreciation</li><li>Project transaction experience</li><li>Download</li></ul></li></ul></li><li>Excellent work appreciation</li><li>Zhaoxi District</li><li>About this site</li></ul></td> </tr></table></body></html>
Tip: you can modify some code before running
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.