abstrait: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>淘寶網(wǎng)站導航</title> <link rel="stylesheet" href="nav1.css" /> &l
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>淘寶網(wǎng)站導航</title>
<link rel="stylesheet" href="nav1.css" />
</head>
<body>
<div class="header">
<div class="header_content">
<div class="content_left">
<a href=""class="header_a">中國大陸</a>
<a href=""style="color: coral; text-decoration: none;">親,請登錄</a>
<a href=""class="header_a">免費注冊</a>
<a href=""class="header_a">手機逛淘寶</a>
</div>
<div class="content_right">
<a href=""class="header_a">我的淘寶</a>
<a href=""class="">購物車</a>
<a href=""class="header_a">收藏夾</a>
<a href=""class="header_a">商品分類</a>
<a href=""class="header_a">賣家中心</a>
<a href=""class="header_a">聯(lián)系客服</a>
<a href=""class="header_a">網(wǎng)站導航</a>
</div>
</div>
</div>
</body>
</html>
* {
margin: 0px;
padding: 0px;
}
.header {
width: 100%;
height: 40px;
background-color: #CCCCCC;
}
.header_content {
width: 900px;
height: 40px;
line-height: 40px;
margin: 0 auto;
}
.content_left {
height: 40px;
float: left;
}
.content_right {
width: 500px;
height: 40px;
float: right;
letter-spacing: 2px;
}
a {
text-decoration: none;
font-size: 13px;
}
.header_a {
display: inline-block;
color: black;
}
.header_a:hover {
color: #F0FFFF;
background-color: darkgreen;
}
Professeur correcteur:查無此人Temps de correction:2019-04-26 13:32:04
Résumé du professeur:完成的不錯??梢园殉S玫腸ss樣式寫到單獨的文件里,隨時可以使用。繼續(xù)加油。