#
vincent
2020-05-26 1ebc7c64d216450b61be46486fffd1950cc80e60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="">
<head>
  <meta charset="utf-8">
  <title>自动仓库WCS系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" type="text/css" href="../static/css/normalize.css">
  <link rel="stylesheet" type="text/css" href="../static/css/common.css">
  <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
  <script type="text/javascript" src="../static/js/common.js"></script>
  <style>
    /* 导航 */
    .nav {
      background-color: #333;
      list-style-type: none;
      position: fixed;
      width: 100%;
      overflow: hidden;
    }
    .nav li {
      float: left;
    }
    .nav li a {
      display: block;
      text-decoration: none;
      padding: 12px 16px;
      text-align: center;
    }
    .nav li a:hover {
      color: #fff;
    }
    .nav li.right {
      float: right;
    }
 
    .nav-unselect {
      color: rgba(255,255,255,.7);
    }
    .nav-select {
      background-color: #a62d2d;
      color: #fff;
    }
 
    #content {
      box-sizing: border-box;
      padding-top: 46px;
      width: 100%;
      height: 100%;
    }
  </style>
</head>
<body>
  <ul class="nav">
    <li><a id="stock" onclick="nav(this.id)" class="nav-select" href="#">导航一</a></li>
    <li><a id="crn" onclick="nav(this.id)" class="nav-unselect" href="#">导航二</a></li>
    <li><a id="led" onclick="nav(this.id)" class="nav-unselect" href="#">导航三</a></li>
    <li class="right"><a id="about" class="nav-unselect" onclick="nav(this.id)" href="#">关于</a></li>
  </ul>
 
  <iframe id="content" src="stock.html"></iframe>
 
</body>
<script>
  function nav(id) {
      $('.nav-select').attr("class", "nav-unselect");
      $('#'+id).attr("class", "nav-select");
  }
 
</script>
</html>