1. 程式人生 > >如何實現導航欄與非垂直下拉框如何無縫連線

如何實現導航欄與非垂直下拉框如何無縫連線

<!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>