Repository navigation
Expand file tree
/
Copy pathPage1.html
More file actions
59 lines (59 loc) · 1.51 KB
/
Copy pathPage1.html
File metadata and controls
59 lines (59 loc) · 1.51 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>T-Color</title>
<style>
#text1{
position: fixed;
top: 20%;
left: 50%;
transform: translateX(-50%);
font-size: 60px;
transition: color 0.5s ease;
}
#text1:hover{
color: blue;
}
#btn1{
position: fixed;
top: 70%;
left: 60%;
transform: translateX(-50%);
width: 12%;
height: 4%;
border-radius: 10px;
border: none;
background-color: black;
color: white;
font-size: 20px;
transition: background-color 0.5s ease;
}
#btn1:hover{
background-color: blue;
}
#btn2{
position: fixed;
top: 70%;
left: 40%;
transform: translateX(-50%);
width: 12%;
height: 4%;
border-radius: 10px;
border: none;
background-color: black;
color: white;
font-size: 20px;
transition: background-color 0.5s ease;
}
#btn2:hover{
background-color: rgb(224, 224, 0);
}
</style>
</head>
<body>
<h1 id="text1">Hello</h1>
<button id="btn1">下一页</button>
<button id="btn2" onclick="window.location.href='index.html'">上一页</button>
</body>
</html>