abstract:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0\css\font-awesome.min.css">
<title>我的作業(yè)</title>
<!-- <style media="screen">
li{list-style: none;}
</style> -->
</head>
<body>
<div>
<div>
<div>
<a href=""class="header_a">中國(guó)大陸 <i class="fa fa-angle-down"></i></a>
<a href="" style="color:#F22E00" >親,請(qǐng)登錄</a>
<a href="">免費(fèi)注冊(cè)</a>
<a href="">手機(jī)逛淘寶</a>
</div>
<div>
<a href=""class="header_a">我的淘寶 <i class="fa fa-angle-down"></i>
<ul>
<li>已買到的寶貝</li>
<li>我的足跡</li>
</ul>
</a>
<a href=""class="header_a"> <span class="fa fa-shopping-cart"style="color:#F22E00"></span> 購(gòu)物車 <i class="fa fa-angle-down"></i></a>
<a href=""class="header_a"><span class="fa fa-star"</span> 收藏夾 <i class="fa fa-angle-down"></i>
<ul>
<li>收藏的寶貝</li>
<li>收藏的店鋪</li>
</ul>
</a>
<a href="">商品分類</a>
<a href=""class="header_a">| 賣家中心 <i class="fa fa-angle-down"></i>
<ul>
<li>免費(fèi)開(kāi)店</li>
<li>賣出的寶貝</li>
<li>出售中的寶貝</li>
<li>賣家服務(wù)市場(chǎng)</li>
<li>賣家培訓(xùn)中心</li>
<li>體驗(yàn)中心</li>
<li>問(wèn)商友</li>
</ul>
</a>
<a href=""class="header_a">聯(lián)系客服 <i class="fa fa-angle-down"></i>
<ul>
<li>消費(fèi)者客服</li>
<li>賣家客服</li>
</ul>
</a>
<a href=""class="header_a"><span class="fa fa-bars"style="color:#F22E00"></span> 網(wǎng)站導(dǎo)航 <i class="fa fa-angle-down"></i></a>
</div>
<div></div>
</div>
</div>
</body>
</html>
/* 去除默認(rèn)樣式 */
*{margin: 0px;padding: 0px;}
/* 設(shè)置a標(biāo)簽的樣式 */
a{text-decoration: none;font-size: 10px;color: #3C3C3C;}
/* 設(shè)置li標(biāo)簽格式去除標(biāo)簽頭 */
li{list-style: none;}
/* 清除浮動(dòng) */
.clear{clear: both;}
/* 設(shè)置導(dǎo)航條底色 */
.header{width: 100%;background-color: #F5F5F5;}
/* 設(shè)置容器居中div */
.header_center{width:1200px;margin: 0px auto;line-height: 40px;}
/* 設(shè)置左邊文字div */
.header_left{height: 40px;float: left;}
/* 設(shè)置右邊文字div */
.header_right{height: 40px;float: right;}
/* 設(shè)置導(dǎo)航條div中a標(biāo)簽屬性 */
.header_center a{display: inline-block;margin-right: 3px;text-align: center;line-height: 40px;width: 80px;height: 40px;position: relative;}
/* 設(shè)置a標(biāo)簽鼠標(biāo)事件 */
.header_center a:hover{color: #F22E00;background-color: #fff;}
/* 設(shè)置ul標(biāo)簽的屬性 */
ul{border: 1px solid #F5F5F5;border-top:none;display: none;}
/* 設(shè)置下拉列表觸發(fā)事件 */
.header_a:hover ul{display: block;position: absolute;}
/* 設(shè)置li標(biāo)簽屬性 */
.header_a ul li{color: #3C3C3C;height: 30px;line-height: 30px;text-align: left;width: 85px;padding: 0px 0px 0px 5px;margin: 5px 0px;}
/* 這是li標(biāo)簽觸發(fā)事件 */
.header_a ul li:hover{background-color: #F5F5F5;}
通過(guò)不斷練習(xí),發(fā)現(xiàn)自己掌握不足的知識(shí)點(diǎn),并加以練習(xí),輸入有時(shí)會(huì)出現(xiàn)錯(cuò)誤,再就是對(duì)定位認(rèn)識(shí)比較差
Correcting teacher:西門大官人Correction time:2019-02-24 09:58:46
Teacher's summary:效果基本實(shí)現(xiàn)了,但是菜單沒(méi)有跟隨 都在最左側(cè)顯示,多看看定位和浮動(dòng)的知識(shí)