abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>淘寶網(wǎng)導航</title> <link rel="stylesheet" href="./static/font
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>淘寶網(wǎng)導航</title> <link rel="stylesheet" href="./static/font-awesome-4.7.0/css/font-awesome.min.css" type="text/css"> <style> *{ margin: 0; padding: 0; } .clear{ clear: both; } a{ text-decoration: none; color: #6c6c6c; font-size: 13px; } li{ list-style:none; } .header{ width: 100%; /*height: 40px;*/ background-color: #F5F5F5; } .header_content{ width: 1200px; /*height: 40px;*/ margin: 0px auto; /*background-color: pink;*/ line-height: 40px; } .header_left{ /*width: 300px;*/ height: 40px; /*background-color: pink;*/ float: left; } .header_left a{ margin-right: 5px; } .header_content a:hover{ color: #FF5000; } .header_right{ width: 600px; height: 40px; /*background-color: pink;*/ float: right; } .header_a{ display: inline-block; height: 40px width:90px; /*background-color: red;*/ text-align: center; position: relative; } .header_a:hover{ background-color: #fff; } .header_a ul{ border: 2px solid #F5F5F5; display: none; border-top: none; } .header_a:hover ul{ display: block; position: absolute; width: 100px; } .header_a ul li:hover{ background-color: #F5F5F5; } .header_a ul li{ color: #6c6c6c; height: 30px; line-height: 30px; text-align: left; padding: 0 3px; margin: 5px 0; } </style> </head> <body> <div> <div> <div> <a href="">中國大陸 <i class=" fa fa-angle-down"></i></a> <a href="" style="color:#FF5000;">親,請登入</a> <a href="">免費注冊</a> <a href="">手機淘寶</a> </div> <div> <a href="" class="header_a">我的淘寶 <i class=" fa fa-angle-down"></i> <ul> <li>已買到的寶貝</li> <li>我的足跡</li> </ul> </a> <a href=""><span class="fa fa-cart-plus" style="color:#FF5000;"></span>購物車</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></a> <a href="" class="header_a">聯(lián)系客服 <i class=" fa fa-angle-down"></i> <ul> <li>消費者客服</li> <li>賣家客服</li> </ul> </a> <a href="" class="header_a"><span class="fa fa-align-justify" style="color:#FF5000;"></span>網(wǎng)站導航 <i class=" fa fa-angle-down"></i></a> </div> </div> <div></div> </div> </body> </html>
Correcting teacher:天蓬老師Correction time:2019-05-20 16:08:27
Teacher's summary:下拉菜單 , 有很多種的實現(xiàn)方案, 有純css的, 更多是用js來實現(xiàn)的