#
vincent
2020-05-26 31cfa8c6878a5598735f039dd1e925b1989e99ae
#
2个文件已修改
1个文件已添加
70 ■■■■ 已修改文件
src/main/webapp/static/css/index.css 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/stock.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/css/index.css
New file
@@ -0,0 +1,31 @@
/* 导航 */
.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;
}
src/main/webapp/views/index.html
@@ -8,41 +8,10 @@
  <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">
  <link rel="stylesheet" type="text/css" href="../static/css/index.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;
@@ -52,6 +21,7 @@
  </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>
@@ -59,6 +29,7 @@
    <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>
src/main/webapp/views/stock.html
@@ -14,7 +14,7 @@
        }
        body {
            height: 100%;
            background-color: #007DDB;
            /*background-color: #007DDB;*/
        }
        #container {
            position: relative;
@@ -28,7 +28,7 @@
</head>
<body>
<div id="container">
    <div id="box">box</div>
    <div id="box"></div>
</div>
</body>
</html>