abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>淘寶導航</title>  
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>淘寶導航</title> <link rel="stylesheet" type="text/css" href="index.css"> <link rel="stylesheet" type="text/css" href="CSS\font-awesome-4.7.0\css\font-awesome.min.css"> </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="">我的淘寶<i class="fa fa-angle-down"></i></a> <a href=""><span class="fa fa-cart-plus"></span> 購物車</a> <a href=""><span class="fa fa-star"></span> 收藏夾<i class="fa fa-angle-down"></i></a> <a href="">商品分類</a> <a href="">賣家中心<i class="fa fa-angle-down"></i></a> <a href="">聯(lián)系客服<i class="fa fa-angle-down"></i></a> <a href="">網(wǎng)站導航<i class="fa fa-angle-down"></i></a> </div> </div> <div></div> </div> </body> </html>
*{ margin:0px; padding:0px; } a{ text-decoration: none; } .clear{ clear:both; } .header{ width: 100%; /*height:40px;*/ background-color:#F5F5F5; } .header_content{ width:1200px; /*height:40px;*/ margin:0px auto; line-height:40px; } .header_left{ /*width:300px;*/ height:40px; float:left; } .header_content a:hover{ color:#FF5000; } .header_left a{ margin-right:5px; } .header_right{ /* width:600px;*/ height:40px; /* background-color:pink;*/ float:right; } .header_a{ display:inline-block; height:40px; width:90px; text-align:center; } .header_a:hover{ background-color:#fff; }
學習到了常用導航欄的div布局以及小圖標的引入,常用導航欄的寫法
Correcting teacher:天蓬老師Correction time:2019-06-27 13:03:01
Teacher's summary:你的這個作業(yè) ,如果配張圖就更好了, 下一次提交建議加上圖片