forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index18css.html
50 lines (48 loc) · 1.3 KB
/
index18css.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
<!DOCTYPE html>
<html>
<head>
<title>avalon.css</title>
<script src="avalon.js" type="text/javascript"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html{
background:#4d6366;
}
body{
padding:20px;
background:#f2f2f2;
}
#aaa{
position: absolute;
width:800px;
height: 500px;
background:#2AAA24;
left:4em;
top:40px;
}
#bbb{
position: absolute;
width:300px;
height:50px;
background: red;
left:30px;
top:20%;
}
</style>
<script>
avalon.ready(function() {
var aaa = document.getElementById("aaa")
avalon.log(avalon(aaa).position())
var bbb = document.getElementById("bbb")
avalon.log(avalon(bbb).position())
})
</script>
</head>
<body>
<div id="aaa">
<div id="bbb">
</div>
</div>
</body>
</html>