-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (56 loc) · 1.18 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
<!DOCTYPE html>
<html lang="en">
<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">
<title>Document</title>
<style>
:root {
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
background-color: #520044;
color: #fec600;
}
main {
min-height: 100vh;
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
position: relative;
}
article {
flex: 1;
text-align: center;
position: absolute;
top: 50%;
transform: translateY(-50%)
}
</style>
</head>
<body>
<main>
<article>
<h1>你好,世界</h1>
<p>这里什么都没有,至少目前没有<span id="dashed">▁</span></p>
</article>
</main>
<script>
; (() => {
const el = document.getElementById('dashed')
setInterval(() => (el.style.opacity = el.style.opacity === '1' ? 0 : 1), 500)
})()
</script>
</body>
</html>