-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
38 lines (33 loc) · 940 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>zBase-1.2.0.js</title>
</head>
<body>
<div class="test">test div</div>
<a href="https://github.com/ZengTianShengZ/zBase/blob/master/README.md" target="_blank">跟多用法请跳转此链接</a>
<script type="text/javascript" src="lib/zBase-1.2.0.js"></script>
<script type="text/javascript">
window.onload= function () {
// 设置 css
$('.test').css({
width:'300px',
height:'300px',
color:"white",
'font-size':'40px',
background:"red"
});
// 一些util
var s = $().getScroll();
console.log('获取浏览器滚动条位置');
console.log(s.top);
console.log(s.left);
var i = $().getInner();
console.log('获取当前窗口大小');
console.log(i.width);
console.log(i.height);
}
</script>
</body>
</html>