-
-
Notifications
You must be signed in to change notification settings - Fork 509
/
horizontal.html
35 lines (35 loc) · 1.03 KB
/
horizontal.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>水平滚动</title>
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="../src/zepto.fullpage.css">
<style>
.start {
left: initial;
top: 50%;
right: 10px;
-webkit-transform: rotate(90deg);
}
</style>
</head>
<body>
<div class="wp">
<div class="wp-inner">
<div class="page page1">1</div>
<div class="page page2">2</div>
<div class="page page3">3</div>
<div class="page page4">4</div>
</div>
</div>
<span class="start"><b></b></span>
<script src="js/zepto.js"></script>
<script src="../src/zepto.fullpage.js"></script>
<script>
$('.wp-inner').fullpage({dir: 'h'});
</script>
</body>
</html>