-
Notifications
You must be signed in to change notification settings - Fork 2
/
wall.html
118 lines (117 loc) · 4.9 KB
/
wall.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1 , user-scalable=no">
<link href="pics/logo2.png" rel="shortcut icon">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/jquery-ui.css" rel="stylesheet">
<link href="css/flat-ui.min.css" rel="stylesheet">
<link href="css/colorset.css" rel="stylesheet">
<script src="lib/jquery-2.1.3.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<title>图片墙</title>
<style>
.wall
{
margin-top: 100px;
}
.mymodal
{
background-color: rgba(0,0,0,0.3);
border-radius: 2%;
}
</style>
<script>
var map=["pic1","pic2","pic3","pic4","pic5","pic6","pic7","pic8","pic9","pic10","pic11","pic12","pic13",'pic14','pic15'];
$(document).ready(function(){
$.each(map,function(key,item)
{
var name=$('#'+item).attr('src');
console.log(name);
$('#'+item).bind('click',function(e){
$('#imgcontent').attr({'src':name});
$('#viewModal').modal('toggle');
});
});
});
</script>
</head>
<body style="background-image: url(pics/bg1.jpg);">
<div class="modal fade" id="viewModal" style="display: none" data-backdrop="true" data-keyboard="true">
<div class="modal-dialog">
<div id="content" class="modal-body mymodal">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="color: rgba(255,255,255,1)">×</button>
<img id="imgcontent" width="100%" src="">
</div>
</div>
</div>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-5">
<span class="sr-only">Toggle navigation</span>
</button>
<a class="navbar-brand" href="main.4.0.html">Design</a>
<ul class="nav navbar-nav">
<li><a href="index.html" class="text-capitalize">主页</a></li>
<li><a href="wall.html" class="text-capitalize">作品展</a></li>
<li><a href="aboutus.html" class="text-capitalize">关于我们</a></li>
</ul>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-5">
</div>
</nav>
<br><br><br>
<div class="container toolbox">
<div class="row">
<div class="col-md-3">
<img id="pic1" class="img-rounded padbox wall" width="100%" src="pics/11111.png.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic2" class="img-rounded padbox wall" width="100%" src="pics/22222.png.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic3" class="img-rounded padbox wall" width="100%" src="pics/33333.png.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic4" class="img-rounded padbox wall" width="100%" src="pics/55555.png.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic5" class="img-rounded padbox wall" width="100%" src="pics/baijiang.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic14" class="img-rounded padbox wall" width="100%" src="pics/library.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic11" class="img-rounded padbox wall" width="100%" src="pics/huabiao.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic6" class="img-rounded padbox wall" width="100%" src="pics/boya.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic9" class="img-rounded padbox wall" width="100%" src="pics/yingxing.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic10" class="img-rounded padbox wall" width="100%" src="pics/yulan.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic12" class="img-rounded padbox wall" width="100%" src="pics/lan.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic8" class="img-rounded padbox wall" width="100%" src="pics/bamboo.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic13" class="img-rounded padbox wall" width="100%" src="pics/hehua.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic7" class="img-rounded padbox wall" width="100%" src="pics/circle.jpg" style="">
</div>
<div class="col-md-3">
<img id="pic15" class="img-rounded padbox wall" width="100%" src="pics/triangle.jpg" style="">
</div>x
</div>
</div>
</body>
</html>