两个文件内代码,仿淘宝页导航(部份)

原创 2019-03-08 16:53:39 285
摘要: <!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>余斌习题仿淘宝网导航(部份)&

 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>余斌习题仿淘宝网导航(部份)</title>
    <link rel="stylesheet" type="text/css" href="yb.css">
    <link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="header">
  <div  class="header_content">
      <div class="header_left">
           <a href="" class="header_a">中国大陆&nbsp;&nbsp;<i class=" fa fa-angle-down"></i></a>
          <a href="" style="color:#ff5000;">亲,请登录</a>
          <a href="">免费注册</a>
          <a href="">手机逛淘宝</a>
      </div>
      <div class="header_right"></div>
      <div class="clear"></div>
     
  </div>
</div>
</body>
<ml>


*{margin: 0px;padding: 0px;}
a{text-decoration: none;color:#000;font-size: 16px;}
.header{width:100%;height:40px;background-color: #f5f5f5;}
.header_content{width:1200px;height:40px;margin:0px auto;line-height:40px}
.header_content a:hover{color:#ff5000;}
.header_left{height:40px;float:left;}
.header_left a{margin-right: 5px;}
.header_right{width:600px;height:40px;background-color: pink;float:right;}
.clear{clear:both;}
.header_a{display:inline-block;height:40px;width:90px;text-align: center;}

批改老师:韦小宝批改时间:2019-03-09 09:18:48
老师总结:写的还算是可以 下次记得这种有外部引入样式表的 记得附上截图哦

发布手记

热门词条