-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (57 loc) · 1.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<title>Webpack Demo</title>
<style type="text/css">
body {
font-family: 'Open Sans', sans-serif;
font-size: 12px;
font-weight: 300;
padding: 10px;
margin: 0;
}
.testBound {
width: 250px;
height: 100px;
text-align: center;
border: 1px solid #dedede;
background: #ccc;
position: relative;
}
.testBound span {
display: block;
position: absolute;
left: 0;
top: 50%;
right: 0;
transform: translateY(-50%);
padding: 5px 10px;
line-height: 16px;
word-break: break-all;
font-size: 14px;
}
.popover {
display: block;
position: absolute;
padding: 5px 10px;
background: #000;
border: 1px solid #cecece;
}
.popover-visible {
display: block;
}
.popover-hidden {
display: none;
}
</style>
</head>
<body>
<h1>Webpack Demo</h1>
<div style="position: relative; left: 20px; top: 20px" class="testBound"><span>1</span></div>
<div style="position: absolute; right: 20px; top: 20px" class="testBound"><span>2</span></div>
<div style="position: fixed; left: 250px; top: 250px" class="testBound"><span>3</span></div>
<script src="index.js"></script>
</body>
</html>