-
Notifications
You must be signed in to change notification settings - Fork 27
/
tips.html
40 lines (28 loc) · 698 Bytes
/
tips.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
<!doctype html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Template Index</title>
<link href="tip.css" rel="stylesheet" />
<style>
#target {
width: 100px;
height: 100px;
position: relative;
margin: 100px auto auto auto;
background-color: #DDD;
}
</style>
</head>
<body>
<div id="target">容器</div>
<script src="Tip.js"></script>
<script>
var target = document.getElementById('target');
Tip.init({container: target});
</script>
</body>
</html>