用户登录
用户注册

分享至

CSS+HTML+JQuery简单菜单

  • 作者: 灵儿6
  • 来源: 51数据库
  • 2022-08-15
	    <style type="text/css">
	        body,ul,li,a{
	        	margin:0;
	        	padding:0
	        }
	        
	        ul,li{
	        	list-style-type:none
	        }

	        .menu{
	        	width:270px;
	        	height:30px;
	        	line-height:30px;
	        	background:#0f67a1
	        }
	        
	        .menu li{
	        	width:80px;
	        	float:left;
	        	display:inline;
	        	position:relative;
	        	z-index:10;
	        	text-align:center/*一级栏内容居中*/
	        }
	        	
	        .menu li:hover{
	        	background:#426d9c;	        	
	        }
	        	
	        .menu .menuUl{
	        	width:50px;
	        	height:auto;
	        	display:none;
	        	background:#426d9c;
	        	position:absolute;
	        	z-index:20;
	        	left:25px;
	        	top:30px
	        }
	        	
	        .menuUl li{
	        	width:100%;
	        	float:left;
	        	text-align:left;
	        }	
	        	        
	        a{
	        	color:#eee;
	        	text-decoration: none
	        }
	        
	        a:hover{
	        	color:#000;
	        	text-decoration: none
	        }
	    </style>
软件
前端设计
程序设计
Java相关