-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·61 lines (56 loc) · 1.31 KB
/
index.html
File metadata and controls
executable file
·61 lines (56 loc) · 1.31 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
<link rel="stylesheet" type="text/css" href="ImageBox.css">
<script src="ImageBox.js"></script>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="imageBox">
</div>
</body>
<script>
var imagebox = new ImageBox("div#imageBox", {
images: [{
img: "image/1.jpg",
data: "说明:<br />嗯嗯嗯嗯嗯嗯嗯嗯嗯嗯 ",
dataStyle: {
"top": "30%",
"left": "10%"
},
type: 0
},
{
img: "image/2.jpg",
data: "说明2<hr/>test",
dataStyle: {
"top": "70%",
"left": "80%"
},
type: 0
},
{
img: "image/3.jpeg",
data: "说明3<br/>测试一下",
dataStyle: {
"top": "70%",
"left": "20%"
},
type: 0
},
],
width: "100%",
height: 9 / 16,
});
</script>
</html>