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

html基礎(chǔ)作業(yè)網(wǎng)頁導(dǎo)航菜單作業(yè)

Original 2019-01-23 23:36:55 288
abstract:老師:您好,我有個問題,我嚴(yán)格按照滅絕大師的視頻教程操作的,做出來的頂部導(dǎo)航為什么一點到 一個導(dǎo)航欄目的時候,顯示的背景顏色和頂部有一點距離。 而且我還發(fā)現(xiàn)了一個問題: 就是以這種方式做的頂部導(dǎo)航菜單,下級菜單不能使用超鏈接a標(biāo)簽。操作時我在二級菜單ul li 里面 插入a標(biāo)簽,就會導(dǎo)致格式大亂,這是為什么呢? <!DOCTYPE html> <
老師:您好,我有個問題,我嚴(yán)格按照滅絕大師的視頻教程操作的,做出來的頂部導(dǎo)航為什么一點到
一個導(dǎo)航欄目的時候,顯示的背景顏色和頂部有一點距離。

而且我還發(fā)現(xiàn)了一個問題:
就是以這種方式做的頂部導(dǎo)航菜單,下級菜單不能使用超鏈接a標(biāo)簽。操作時我在二級菜單ul li 里面
插入a標(biāo)簽,就會導(dǎo)致格式大亂,這是為什么呢?

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<link rel="shortcut icon" type="image/x-icon" href="https://img.alicdn.com/tps/i3/T1OjaVFl4dXXa.JOZB-114-114.png">
	<link rel="stylesheet" type="text/css" href="index.css">
	<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
	<title>淘寶網(wǎng)</title>
</head>

<body>
	<div class="header">
		<div class="header-content">
			<div class="header-left">			
				<a href="" class="header_a">中國大陸 &nbsp;<i class="fa fa-chevron-down " ></i>
				<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
					</ul>
				</a>	
				<a href="" style="color: #ff5000;">親,請登陸</a>
				<a href="">免費注冊</a></li>
				<a href="">手機(jī)逛淘寶</a>		
			</div>
			<div class="header-right">
				<a href="" class="header_a">我的淘寶&nbsp;<i class="fa fa-chevron-down" ></i>	
					<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
					</ul>
					</a>
					<a href="" class="header_a"><i class="fa fa-shopping-cart" style="color: #ff5000;" ></i>&nbsp;購物車&nbsp;<i class="fa fa-chevron-down" ></i>
					<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
					</ul>
				</a>
					<a href="" class="header_a">收藏夾&nbsp;<i class="fa fa-chevron-down" ></i>
				<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
					</ul>
					</a>
					<a href="">商品分類</a>
					<a href="" class="header_a">賣家中心&nbsp;<i class="fa fa-chevron-down" ></i>
					<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
					</ul>
				</a>
					<a href="" class="header_a">聯(lián)系客服&nbsp;<i class="fa fa-chevron-down" ></i>
					<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
					</ul>
				</a>
					<a href="" class="header_a"><i class="fa fa-list-ul" style="color: #ff5000;"></i>&nbsp;網(wǎng)站導(dǎo)航&nbsp;<i class="fa fa-chevron-down" ></i>
					<ul>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>
						<li>已買到的寶貝</li>
						<li>我的足跡</li>

					</ul></a>
				
			</div>
		</div> <div class="clear"></div>
	</div>

</body>

</html>
*{margin: 0px;padding: 0px;}
a{text-decoration: none;color: #6c6c6c;font-size: 11px;}
li{list-style: none;}
.clear{clear: both;}
.header{width: 100%;background: #c7c7c7;height: 40px;}
.header-content{width: 1200px;margin: 0px auto;height: 40px;line-height: 40px;}
.header-left{float: left;height: 40px;}
.header-left a{margin-right: 5px;}
.header-right{float: right;height: 40px;}
.header-content a:hover{color: #ff5000;}
.header_a{display: inline-block;width: 90px;text-align: center;height: 40px;position: relative;}
.header_a:hover{background-color: #fff;}
.header_a ul{display: none; border: 1px solid #f5f5f5;}
.header_a:hover ul{display: block; position: absolute;width: 100px;border-top: none;}
.header_a ul li{color: #6c6c6c;height: 30px;line-height: 30px;text-align: left;padding-left: 5px;margin: 5px 0px;}
.header_a ul li:hover {background-color: #f5f5f5; }


Correcting teacher:天蓬老師Correction time:2019-01-24 08:58:26
Teacher's summary:這些問題,可以通過查看元素,進(jìn)行分析 , 看某一個元素的具體樣式, 以及他上面的繼承的樣式, 就可以分析出來, 如果仍不能理解,可以發(fā)工單,將運(yùn)行的效果圖放在上面,供老師幫你分析

Release Notes

Popular Entries