日期:2014-05-16 浏览次数:20628 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>纯CSS实现的多级下拉导航菜单5,可设定下拉菜单宽度mobanwang.com</title>
<style type="text/css">
/* for this demo only */
#backgroundHolder { width:750px; height:490px; padding-top:10px; background:url(ulmulti5/pic.jpg); margin:0 auto; text-align:center; }
/* ---------------------------------------------------------------------------- */
/* default styling */
.nav, .nav ul { list-style-type:none; margin:0; padding:0; }
.nav a { text-decoration:none; }
.nav { font-family: arial, sans-serif; font-size:12px; width:460px; margin:0 auto; text-align:left; }
/* style the links */
/* needs a background for IE6 - can be a color or a transparent gif */
.nav a { background:url(trans.gif); filter: alpha(opacity=90); opacity:0.9; }
/* style the <b> element so that is does not affect the size of the link */
.nav a b { color:#fff; font-weight:normal; display:block; padding:5px 10px; margin-right:1px; }
.nav a:hover b { color:#000; cursor:pointer; border-left:2px solid #eee; }
.nav .fly .main b { background: transparent url(ulmulti5/arrow.gif) no-repeat right 9px; }
.nav .down b { background: transparent url(ulmulti5/arrow2.gif) no-repeat right 11px; }
/* for the offset left dropdown and flyout */
.nav .nav4 ul b { text-align:right; }
.nav .nav4 ul .main b { background: transparent url(ulmulti5/arrow3.gif) no-repeat left 9px; text-align:right; }
.nav .nav4 ul a:hover b { border-left:0; border-right:2px solid #eee; }
/* HEIGHT */
.nav ul ul { top:-25px; } /* position the top of the flyout sub menus */
.nav ul ul.two { top:-40px; } /* position the top of the flyout sub menus */
/* WIDTH change this WITH CARE to suit your requirements */
/* FOR NAV1 */
.nav1 { width:80px; }
.nav1 a { width:80px; }
.nav1 a b { background-color:#764; }
/* FOR NAV2 */
.nav2, .nav2 a { width:100px; }
.nav .nav2 a b, .nav .nav2 .fly a b { background-color:#887; }
.nav2 ul li { max-widt