-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogramTest.html
143 lines (138 loc) · 5.14 KB
/
programTest.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/templatemo-style.css">
<link rel="shortcut icon" href="./images/0.ico" />
<link rel="bookmark"href="./images/0.ico" />
<title>前端项目</title>
<style>
body{
background-image:linear-gradient(150deg, #34ace0, #227093);
color: #f7f1e3;
font-family: 黑体;
margin-bottom: 200px;
}
a{
color: #f7f1e3;
}
a:hover{
color: #fbc531;
}
#back1{
color: #f7f1e3;
position: absolute;
padding-top: 40px;
font-size: 30px;
text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.589);
}
#title1{
padding: 100px;
justify-content: center;
text-align: center;
font-size: 50px;
text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.589);
}
.auto-image{
width: 100%;
height: auto;
}
.box0{
text-align: center;
transition: all 0.3s;
background-color: rgb(255, 255, 255);
padding-right: 0px;
padding-left: 0px;
margin-bottom: 100px;
min-height:220px;
box-shadow:5px 5px 5px rgba(0, 0, 0, 0.589);
border: 3px solid rgb(255, 255, 255);
}
.box0:hover{
transform:matrix3d(
1,0,0,0,
0,1,0,0,
0,0,1,0,
0,-20,0,0.9
);
box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.589);
border: 3px solid #fbc531;
}
.box0>p{
height: 25%;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
color: rgb(0, 0, 0);
font-family:圆体;
font-weight: 600;
color:#227093;
}
</style>
</head>
<body>
<div class="container">
<section id="back1">
<a href="./index.html#bianCheng">返回</a>
</section>
<section id="title1">
<p>前端小项目</p>
</section>
<section class="col-lg-12 col-md-12 content ">
<a href="./programTest/project1/html.html" class="col-lg-2 col-md-2 box0">
<img id="img1" src="./programTest/img/1.png" class="auto-image">
<p>CSS 3D盒子</p>
</a>
<a href="./programTest/project2/web前端作业.html" class="col-lg-2 col-md-2 col-lg-offset-1 col-md-offset-1 box0">
<img id="img1" src="./programTest/img/2.png" class="auto-image">
<p>科协第1次作业</p>
</a>
<a href="./programTest/project3/index.html" class="col-lg-2 col-md-2 col-lg-offset-1 col-md-offset-1 box0">
<img id="img1" src="./programTest/img/3.png" class="auto-image">
<p>科协第2次作业</p>
</a>
<a href="./programTest/project4/index.html" class="col-lg-2 col-md-2 col-lg-offset-1 col-md-offset-1 box0">
<img id="img1" src="./programTest/img/4.png" class="auto-image">
<p>科协第3次作业</p>
</a>
<a href="" class="col-lg-2 col-md-2 box0">
<img id="img1" src="./images/1.jpg" class="auto-image">
<p>空</p>
</a>
<a href="" class="col-lg-2 col-md-2 col-lg-offset-1 col-md-offset-1 box0">
<img id="img1" src="./images/1.jpg" class="auto-image">
<p>空</p>
</a>
<a href="" class="col-lg-2 col-md-2 col-lg-offset-1 col-md-offset-1 box0">
<img id="img1" src="./images/1.jpg" class="auto-image">
<p>空</p>
</a>
<a href="" class="col-lg-2 col-md-2 col-lg-offset-1 col-md-offset-1 box0">
<img id="img1" src="./images/1.jpg" class="auto-image">
<p>空</p>
</a>
</section>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.singlePageNav.min.js"></script>
<script>
var box0Length = document.getElementsByClassName("box0").length;
var box = document.getElementsByClassName("box0");
keepScale();
window.onresize=keepScale;
function keepScale(){
for(let i=0;i<box0Length;i++){
box[i].style.height=parseInt((document.getElementById("img1").width/3)*4)+"px";
console.log("shit");
}
console.log("ti works")
}
</script>
</body>
</html>