-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
48 lines (48 loc) · 1.32 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
<!DOCTYPE html>
<html lang="zh-CN">
<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>Sketch Measure Compare</title>
<style>
body {
height: 200vh;
}
#root {
width: 100px;
padding: 1px 2px 3px 4px;
margin: 2px 4px 8px 10px;
border-radius: 13px;
opacity: 0.7;
background-color: rgba(0, 0, 0, 0.8);
color: rgba(255, 255, 255, 0.9);
line-height: 20px;
font-size: 18px;
border: 10px double green;
}
</style>
</head>
<body>
<div id="root">Test Page</div>
<br />
<div>Test Page</div>
<br />
<span>Test Page</span>
<br />
<div>
<div id="jump">
Jump Page
<div></div>
</div>
</div>
<script>
window['root'].onclick = () => {
console.log('click');
};
window['jump'].onclick = () => {
location.href = 'http://jump';
};
</script>
</body>
</html>