-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
62 lines (56 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
html,
body {
margin: 0;
padding: 0;
position: relative;
height: 100vh;
user-select: none;
overflow: hidden;
}
.container {
position: absolute;
width: 200px;
height: 200px;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
background-color: #9e21ff;
background-image: linear-gradient(135deg, #ed21ff 0%, #9e21ff 100%, #9e21ff 100%);
box-shadow: 0 3px 47px rgba(0, 0, 0, 0.2);
transform-style: preserve-3d;
transform: perspective(300px);
}
.author {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: rgba(255, 255, 255, 0.7);
}
</style>
</head>
<body>
<div class="container">
<div class="author">
<h2>此DEMO展示H5在PC设备上的摄像头交互能力</h2>
<p>请授权摄像头访问权限</p>
<small>JAWEI</small>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>