摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>nav</title> <link rel="stylesheet" type="text/css"&
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>nav</title> <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;} ul{list-style: none;} .nav{margin: 0px auto;width:1200px;line-height: 70px;} .nav_left{float:left;width:180px;height: 70px;} .nav_left img{vertical-align:middle;} .nav_center{float:left;margin-left:100px;width:700px;height: 70px;position: relative;} .nav_center a{display:inline-block;width:60px;text-align: center;color: #333333} .nav_center a:hover{color:#FF9300;} .nav_center ul{display:none;position: absolute;} .nav_center ul li{height: 30px;width: 60px;line-height: 30px;text-align: left;} .nav_center ul li:hover{color:#FF9300;} .nav_center_a:hover ul{display: block;color:#333333;} .nav_right{float:right;width:120px;height: 70px;} .nav_right div{display: inline-block;width: 30px;} </style> </head> <body> <div> <div> <img src="http://www.php.cn/static/images/logo.png"> </div> <div> <a href="#">首页</a> <a href="#"> 栏目 <i class="fa fa-caret-square-o-down"></i> <ul> <li>艺术</li> <li>健康出行</li> <li>智能设备</li> <li>精选课</li> </ul> </a> <a href="#">言论</a> <a href="#">精选</a> <a href="#">业务 <i class="fa fa-caret-square-o-down"></i> <ul> <li>艺术</li> <li>健康出行</li> <li>智能设备</li> <li>精选课</li> </ul></a> <a href="#">合作</a> </div> <div> <div><i class="fa fa-search" style="width: 30px;height: 30px;"></i></div> <div><i class="fa fa-user-o" style="width: 30px;height: 30px;"></i></div> </div> </div> </body> </html>
显示如下
批改老师:天蓬老师批改时间:2019-02-18 10:59:12
老师总结:做得挺不错的, 代码也规范, 如果加上些注释,会更好