From 31cfa8c6878a5598735f039dd1e925b1989e99ae Mon Sep 17 00:00:00 2001 From: vincent <1341870251@qq.com> Date: 星期二, 26 五月 2020 21:52:17 +0800 Subject: [PATCH] # --- src/main/webapp/views/index.html | 35 +---------------- src/main/webapp/views/stock.html | 4 +- src/main/webapp/static/css/index.css | 31 +++++++++++++++ 3 files changed, 36 insertions(+), 34 deletions(-) diff --git a/src/main/webapp/static/css/index.css b/src/main/webapp/static/css/index.css new file mode 100644 index 0000000..6e91fac --- /dev/null +++ b/src/main/webapp/static/css/index.css @@ -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; +} \ No newline at end of file diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html index fe2e32b..ffc296e 100644 --- a/src/main/webapp/views/index.html +++ b/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> diff --git a/src/main/webapp/views/stock.html b/src/main/webapp/views/stock.html index 6c2e403..b0ade24 100644 --- a/src/main/webapp/views/stock.html +++ b/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> \ No newline at end of file -- Gitblit v1.9.1