如何实现导航栏与非垂直下拉框如何无缝连接

<!DOCTYPE html>
<<html>
	<head>
		<meta charset="UTF-8"/>
		<meta lang="en"/>
		<title>test</title>
		<style>
			.nav-box{
				width:100px;
				height: 50px;
				margin:0 auto;
				position: relative;
				border:1px solid #000000;
				border-bottom: none;
				background: rgb(255,255,255);
			}
			.nav-list{
				width:200px;
				height: 100px;
				border:1px solid black;
				position: absolute;
				top:49px;
				left:-1px;
				z-index: -1;
				display: none;
			}
			.nav-box:hover .nav-list{
				display: block;
				}
		</style>
	</head>
	<body>
		<div class="nav-box">
			<div class="nav-list">
			</div>
		</div>	
	</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_32021025/article/details/84624091