-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (64 loc) · 1.52 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Demo</title>
<!-- Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<!-- JQuery 核心 JavaScript 文件 -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<!-- Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#page").load("a.html", function() {
});
$("#zy").click(function(){
navNon();
$("#zy").addClass("active");
$("#page").load("a.html");
});
$("#wz").click(function(){
navNon();
$("#wz").addClass("active");
$("#page").load("b.html");
});
$("#grd").click(function(){
navNon();
$("#grd").addClass("active");
$("#page").load("c.html");
});
});
function navNon(){
$("#nav li").removeClass("active");
}
</script>
<style type="text/css">
body{
margin: 0px;padding: 0px;
}
#container{
width: 90%;
margin: auto;
}
#logo{
line-height: 90px;
}
</style>
</head>
<body>
<div id="container">
<div id="hand">
<div id="logo">Just A Demo!</div>
<div id="nav">
<ul class="nav nav-tabs" id="nav">
<li id="zy" role="presentation" class="active"><a>主页</a></li>
<li id="wz" role="presentation"><a>文章</a></li>
<li id="grd" role="presentation"><a>个人档</a></li>
</ul>
</div>
</div>
<div id="page"> non .</div>
</div>
</body>
</html>