abstrakt:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>新浪導(dǎo)航</title> <link rel="stylesheet" type="text/css" href="css/index.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>新浪導(dǎo)航</title>
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
*{margin:0px;padding:0px;}
a{text-decoration:none;color:#000;}
i{color:#FF8500;}
.clear{clear:both;}
.head_up{width:100%;height:5px;background-color:#FF8500;}
.header{width:100%;height:53px;background-color:#FCFCFC;border:1px solid #EDEEF0;}
.header_content{width:1253px;height:53px;margin:0px auto;line-height:53px;text-align:center;}
.header_content a:hover{background:#F6F8F9;}
.header_left{width:400px;height:53px;float:left;}
.left_a1{display:inline-block;width:100px;height:53px;}
.left_a2{display:inline-block;width:120px;height:53px;}
.left_a3{display:inline-block;width:130px;height:53px;}
.header_right{width:600px;height:53px;float:right;}
.right_a1{display:inline-block;width:80px;height:53px;}
.right_a2{display:inline-block;width:100px;height:53px;}
</style>
</head>
<body>
<div class="head_up"></div>
<div class="header">
<div class="header_content">
<div class="header_left">
<a href="" class="left_a1">設(shè)為主頁</a>
<a href="" class="left_a2">手機(jī)新浪網(wǎng)</a>
<a href="" class="left_a3">移動(dòng)客戶端 <i class="fa fa-angle-down"></i></a>
</div>
<div class="header_right">
<a href="" class="right_a1">登錄</a>
<a href="" class="right_a2">微博 <i class="fa fa-angle-down"></i></a>
<a href="" class="right_a2">博客 <i class="fa fa-angle-down"></i></a>
<a href="" class="right_a2">郵箱 <i class="fa fa-angle-down"></i></a>
<a href="" class="right_a2">網(wǎng)站導(dǎo)航</a>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>
老師您好!我在細(xì)節(jié)的處理上欠缺不少,在本節(jié)作業(yè)中,我想把header_left中的a鏈接移動(dòng)到header_left的最左側(cè),把header_right中的a鏈接移動(dòng)到最右側(cè),沒有實(shí)現(xiàn)??偟膩碚f,跟著老師一起敲代碼,學(xué)習(xí)效果還是不錯(cuò)的。
Korrigierender Lehrer:滅絕師太Korrekturzeit:2019-01-14 09:58:28
Zusammenfassung des Lehrers:你的變量名沒有區(qū)分開呀,,并且不用每個(gè)a都給上class直接.header_left a ;.header_right a 這樣來寫 減少代碼冗余;