Blogger Information
Blog 7
fans 1
comment 5
visits 4658
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
DIV导航样式
Dusk的博客
Original
1130 people have browsed it

实例

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>淘宝网站导航</title>
		<link rel="stylesheet" href="nav1.css" />
	</head>
	<body>
		<div class="header">
			<div class="header_content">
				<div class="content_left">
					<a href=""class="header_a">中国大陆</a>
					<a href=""style="color: coral; text-decoration: none;">亲,请登录</a>
					<a href=""class="header_a">免费注册</a>
					<a href=""class="header_a">手机逛淘宝</a>
				
				</div>
				<div class="content_right">
					<a href=""class="header_a">我的淘宝</a>
					<a href=""class="">购物车</a>
					<a href=""class="header_a">收藏夹</a>
					<a href=""class="header_a">商品分类</a>
					<a href=""class="header_a">卖家中心</a>
					<a href=""class="header_a">联系客服</a>
					<a href=""class="header_a">网站导航</a>
				</div>
				
			</div>
			
		</div>
	</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

实例

* {
	margin: 0px;
	padding: 0px;
}

.header {
	width: 100%;
	height: 40px;
	background-color: #CCCCCC;
}

.header_content {
	width: 900px;
	height: 40px;
	line-height: 40px;
	margin: 0 auto;
}

.content_left {
	height: 40px;
	float: left;
}

.content_right {
	width: 500px;
	height: 40px;
	float: right;
	letter-spacing: 2px;
}

a {
	text-decoration: none;
	font-size: 13px;
}

.header_a {
	display: inline-block;
	color: black;
}

.header_a:hover {
	color: #F0FFFF;
	background-color: darkgreen;
}

运行实例 »

点击 "运行实例" 按钮查看在线实例

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post