サマリー:<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
<title>導(dǎo)航條</title>
<style>
a{text-decoration:none;color:#fff;margin-left:4px;position:relative;}
li{list-style:none;}
.header{width:100%;background-color:black;line-height:70px;}
.header-left{width:1200px;height:70px;float:left;}
.header-right{width:200px;height:70px;float:right;}
.clear{clear:both;}
.header a{display:inline-block;height:70px;width:90px;text-align:center;}
.header img{display:inline-block;}
.img1{float:left;}
.img2{ width:70px;height:70px;border-radius:200%;}
a:hover{color:red;border-bottom:4px solid green;}
.header a ul{border:1px;display:none;position:absolute;}
.header a:hover ul{display:block;}
.header a ul li{background-color:rebeccapurple;height:70px;width:110px;}
/* 不知道為啥,下拉單和上面導(dǎo)航有空隙?還有,鼠標移不上,下拉菜單的內(nèi)容,我找不到bug */
</style>
</head>
<body>
<div>
<div>
<img src="img/logo.png" alt="hello" style="width:160px;height:70px;">
<a href="#" style="background-color:#ccc">首頁</a>
<a href="#">視頻教程<i class=" fa fa-angle-down"></i></a>
<a href="#">社區(qū)問答</a>
<a href="#">編程詞典
<ul>
<li>php詞典</li>
<li>jquer詞典</li>
<li>html詞典</li>
<li>javascript詞典</li>
<li>技術(shù)文章</li>
<li>php教程</li>
<li>小程序開發(fā)</li>
<li>html教程</li>
</ul>
</a>
<a href="#">手冊下載</a>
<a href="#">工具下載</a>
<a href="#">類庫下載</a>
<a href="#">工具下載</a>
<a href="#">特色課程</a>
<a href="#">菜鳥學(xué)堂</a>
</div>
<div>
<a href="#"><i class=" fa fa-volume-up"></i></a>
<!-- 這個聲音圖標不能居中,所有a標簽都能居中,為啥他不能,在a標簽樣式里加入line-height也不行 -->
<img src="img/logo.png" alt="hello"/>
<!-- 這個圖片不能正圓,我都是跟著視頻做的。反復(fù)看也沒找到原因 -->
</div>
<div></div>
</div>
</body>
</html>
添削の先生:天蓬老師添削時間:2019-02-01 11:47:21
先生のまとめ:正圓有二個前提, 圖片必須是正方形, 邊框圓角值必須是長度的一半,或者50%, 滿足這二點,必定是正圓,祝你成功