1. 程式人生 > >微信滑動門技術

微信滑動門技術

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		*{
			margin:0;
			padding:0;
		}  
		a{
			text-decoration: none;
		}
		ul li{
			list-style: none;
		}
		.w{
			width: 1000px;
			margin: 0 auto;
		}
		.header{
			height: 75px;
			background: url(../images/微信滑動門/header_bg.jpg);
		}
		.header .logo{
			float: left;
			margin-top: 14px;
		}
		.header .nav{
			float: left;
			height: 33px;
			line-height: 33px;
			margin-top: 21px;
			margin-left: 75px;
		}
		.header .nav ul li{
			float: left;
			margin: 0 4px;
		}
		.header .nav ul li a{
			padding-left: 16px;
			background: url(../images/微信滑動門/to.png) left top;
			float: left;
			height: 33px;
			line-height: 33px;
		}
		.header .nav ul li span{
			padding-right: 16px;
			background: url(../images/微信滑動門/to.png) right top;
			float: left;
			height: 33px;
		}
		.header .nav ul li a{
			color: white;
			font-size: 14px;
			padding-left: 16px;
			float: left;
		 	height: 33px;
			line-height: 33px; 
		}
		.header .nav ul li a:hover{
			background: url(../images/微信滑動門/ao.png) left top;
		}
		.header .nav ul li a:hover span{
			background: url(../images/微信滑動門/ao.png) right top;
		}    
	</style>
</head>
<body>
	<div class="header">
		<div class="w">
			<div class="logo">
				<a href="#">
					<img src="../images/微信滑動門/wx_logo.png" >
				</a>
			</div>    
			<div class="nav">
				<ul>
					<li>
						<a href=""><span>首頁</span></a>
					</li>    				
					<li>
						<a href=""><span>幫助與反饋</span></a>
					</li>   				  				
					<li>
						<a href=""><span>公眾平臺</span></a>
					</li>    				   				
					<li>
						<a href=""><span>開放平臺</span></a>
					</li>    				  				
					<li>
						<a href=""><span>微信支付</span></a>
					</li>    				    				
					<li>
						<a href=""><span>微信網頁版</span></a>
					</li>  				    				
					<li>
						<a href=""><span>表情開放平臺</span></a>
					</li>   				  				
					<li>
						<a href=""><span>微信廣告</span></a>
					</li>
				</ul>
			</div>
		</div>
	</div>
</body>
</html>

實現效果如圖:
在這裡插入圖片描述