menu代码2

body {
	font-size:11px;
	font-family:Arial, Helvetica, sans-serif;
}
p a {
	color: #000;
	text-decoration:underline!important;

}
input.button{
  overflow:visible;
margin:0;padding:0;
  width:auto; /**//*FF识别的属性*/
  _width:0; /**//*IE6识别的属性*/
}

a{
	color:#000;
	text-decoration:none;
	}
p a:hover{	text-decoration: none!important;
}


ul#nav {
	list-style: none;
	padding: 0;
	margin: 0;
}


ul#nav li a {
	display: block;
	font-weight: bold;
	padding: 2px 10px;
	background:#f9f9f9;
}

ul#nav li a:hover{
	background:#888;
	color:#fff;
	}
	
ul#nav li {
	float: left;
	position: relative;
	width: 98px;
	text-align: center;
	margin-right:5px;
	border:1px solid #ccc;

}

ul#nav li.current a{
	background:#ddd;
	}

ul#nav li.current a:hover{
	background:#888;
	}

li ul {
	display: none;
	position: absolute;
	width:100px;
	top: 0;
	left: 0;
	font-weight: normal;
	padding: 1px 0 10px 0;
	margin-left:-1px;
}

ul#nav li ul.sub li{
	border-width:0 1px 1px 1px!important;
}

ul#nav li ul.sub li a{
	font-weight: normal!important;	
}
li>ul {
	top: auto;
	left: auto;
}

li:hover ul, li.over ul {
	display: block;
}

 

你可能感兴趣的:(menu)