-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (40 loc) · 1.11 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
<!DOCTYPE html>
<html
lang="en"
style="height: 100%">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script
src="js.js"
defer></script>
<script src="https://unpkg.com/[email protected]/build/dat.gui.min.js"></script>
<style>
* {
padding: 0;
margin: 0;
}
</style>
</head>
<body style="height: 100%">
<div style="display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; width: 100%">
<div
id="box"
style="position: relative">
<div
id="here"
style="border: 4px solid blue; color: blue; position: relative; display: inline-block; font-size: 4rem">
Click
</div>
<canvas style="position: absolute; border: 4px solid red; top: 0; left: 0"></canvas>
</div>
<div class="">
<div class="">Blue texts is normal text from div</div>
<div class="">Red are text drawn from canvas</div>
</div>
</div>
</body>
</html>