亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

DIV+CSS浮動實(shí)現(xiàn)簡單導(dǎo)航效果

Original 2019-02-17 10:07:30 226
abstract:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS浮動實(shí)現(xiàn)</title> <style type="text/css"> *{ margin: 
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>CSS浮動實(shí)現(xiàn)</title>
	<style type="text/css">
		*{
			margin: 0px;
			padding: 0px;
		}
		.float_one{
			width: 150px;
			height: 30px;
			line-height: 30px;
			float: left;
			margin:1px;
			background: #ccc;
			text-align: center;
			position: relative;
		}
		.float_one{
			
		}
		.main{
			margin:10px 50px;
		}
		.float_two{
			background: pink;
			display:none;
		}
		.float_two div{
			border: 1px solid #ccc;
		}
		.float_one:hover .float_two{
			display: block;
		}
	</style>
</head>
<body>
<div class='main'>
	<div class="float_one">
		PHP
		<div class="float_two">
			<div>SESSION</div>
			<div>COOKICE</div>
		</div>
	</div>
	<div class="float_one">JAVA
		<div class="float_two">
			<div>SPRING</div>
			<div>STATUS</div>
		</div>
	</div>
	<div class="float_one">MYSQL</div>
	<div class="float_one">LINUX</div>
	<div class="float_one">HTML</div>
	<div class="float_one">CSS
		<div class="float_two">
			<div>FLOAT</div>
			<div>BACKGROUND</div>
			<div>HOVER</div>
			<div>DISPLAY</div>
		</div>
	</div>
</div>
</body>
</html>

實(shí)現(xiàn)效果如下:

鼠標(biāo)放到導(dǎo)航上,自動加載下拉次導(dǎo)航!

QQ截圖20190217100613.jpg

Correcting teacher:西門大官人Correction time:2019-02-17 10:14:30
Teacher's summary:作業(yè)寫的很好,這種效果,還可以使用js來實(shí)現(xiàn)。不過CSS是最完美的

Release Notes

Popular Entries