摘要:<!DOCTYPE html> <html> <head> <meta charset="uft-8"> &
<!DOCTYPE html> <html> <head> <meta charset="uft-8"> <title>導(dǎo)航條案例-淘寶網(wǎng)</title> <link rel="stylesheet" type="text/css" href="css/index1.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="" style="color:#000;">中國大陸 <i class="fa fa-angle-down"></i></a> <a href="" style="color:#F22E00;">親,請登陸</a> <a href="">免費(fèi)注冊</a> <a href="">手機(jī)逛淘寶</a> </div> <div> <a href=""> 我的淘寶 <i class="fa fa-angle-down"></i></a> <a href=""><span class="fa fa-shopping-cart" style="color:#FF4400;"> </span>購物車 <i class="fa fa-angle-down"></i></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="" ><span class="fa fa-bars" style="color:#FF4400;"> </span>網(wǎng)站導(dǎo)航 <i class="fa fa-angle-down"></i></a> </div> <div></div> </div> </body> </html>
*{margin: 0px;padding: 0px;} a{text-decoration: none;color: #6C6C6C;font-size: 13px;} .clear{clear: both;} .header{width: 100%;background-color:#F5F5F5;} .header_content{width:1200px;margin:0px auto;line-height: 40px;} .header_left{height: 40px;float: left;} .header_left a{margin-right:5px; } .header_content a:hover{color:#F22E00;} .header_right{height: 40px;float: right;} .header_a{display: inline-block; width:90px;height: 40px;text-align: center;} .header_a:hover{background-color: #fff;}
總結(jié):
字體庫的引用
塊級元素和行內(nèi)元素的轉(zhuǎn)化
display的正確運(yùn)用
批改老師:滅絕師太批改時(shí)間:2018-11-30 09:11:43
老師總結(jié):布局時(shí)帶有二級下拉菜單的導(dǎo)航不建議用a嵌套,可以使用無序列表