SONY中国首页模仿02

Original 2019-04-02 15:55:22 194
abstract:<!DOCTYPE html > <html> <head>   <meta charset="utf-8">   <title>员工信息管理系统</title>   <link rel="s
<!DOCTYPE html >
<html>
<head>
  <meta charset="utf-8">
  <title>员工信息管理系统</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">
</head>

<body>
<div class="header">
  <div class="header_content">
    <div class="header_left">
      <a href="#" style="color:white">SONY</a><br>
      <a href="" class="header_list">SONY产品&nbsp;<i class=" fa fa-angle-down"></i>
        <ul>
          <li>消费电子商品</li>
          <li>专业商品</li>
        </ul>
      </a>
      <a href="">服务与支持</a>
      <a href="">新闻中心</a>
      <a href="">关于SONY</a>
    </div>
    <div class="header_right">
      <br>
      <a href=""><span class="fa fa-user-circle"></span>&nbsp;员工中心</a>
      &nbsp;&nbsp;
      <a href="">联系维护</a>
    </div>
  </div>
  <div class="clear"></div>
</div>
</body>
</html>

CSS部分如下

*{margin:0px;padding:0px;}
a{text-decoration: none;color:#C0C0C0;font-size:13px;}
li{list-style:none;}
.clear{clear:both;}
.header{width:100%;background-color: #000;}
.header_content{width:1200px;margin:0px auto;line-height: 40px;}
.header_left{width:320px;height:80px;float:left;}
.header_left a{margin-right: 5px;}
.header_content a:hover {color:#FF5000;}
.header_right{width:200px;height:80px;float: right;}
.header_list{display:inline-block;height: 40px;width: 90px;text-align: center;width: 90px;position:relative;}
.header_list:hover{background-color: #fff;}
.header_list ul{border: 1px solid #F5F5F5;display:none;border-top: none;}
.header_list:hover ul{display:block;position:absolute;width:100px;}
.header_list ul li{color:#6c6c6c; height: 30px;line-height: 30px;text-align: left;padding:0px 3px;margin:5px 0px;}
.header_list ul li:hover{background-color: #F5F5F5;}


Correcting teacher:查无此人Correction time:2019-04-03 13:25:46
Teacher's summary:完成的不错。可以把css样式写成固定的,下次就不需要重复写了。写成固定的样式,要把class名写的有规则。

Release Notes

Popular Entries