修改
This commit is contained in:
46
header.html
Normal file
46
header.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="./css/header.css">
|
||||
</head>
|
||||
<script type="text/javascript" src = "./js/jquery.js"></script>
|
||||
<body>
|
||||
<div class="home--nav">
|
||||
<img class="home--nav__logo" src="images/logo-2.png" />
|
||||
<div class="home--nav__tab">
|
||||
<div class="home--nav__tab--item">
|
||||
<a href="./serve.html">安全微服务</a>
|
||||
<div id="line2"></div>
|
||||
</div>
|
||||
<div class="home--nav__tab--item">
|
||||
<a href="./secure.html">独立站安全</a>
|
||||
<div id="line3"></div>
|
||||
</div>
|
||||
<div class="home--nav__tab--item">
|
||||
<a href="./network.html">政务外网安全</a>
|
||||
<div id="line4"></div>
|
||||
</div>
|
||||
<div class="home--nav__tab--item">
|
||||
<a href="./about.html">关于我们</a>
|
||||
<div id="line5"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="home--nav__phone">
|
||||
<img class="home--nav__phone--icon" src="./images/phone-2.png">
|
||||
<div class="home--nav__phone--text">400-8868-324</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(".home--nav__tab--item >a").each(function () {
|
||||
if ($($(this))[0].href == String(window.location))
|
||||
$(this).parent().addClass('active');
|
||||
console.log($(this).parent())
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user