forked from cycjimmy/awesome-swiper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoFixFullImg.html
52 lines (50 loc) · 1.2 KB
/
autoFixFullImg.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
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Awesome Swiper Demo</title>
<style>
h2 {
text-align: center;
}
#autoFixFullImg {
width: 800px;
height: 560px;
}
</style>
</head>
<body>
<h2>Auto Fix Full Image</h2>
<div class="swiper-container" id="autoFixFullImg">
<div class="swiper-wrapper">
<div class="swiper-slide">
<a class="swiper-full-img" href="javascript:;"><img src="p1.jpg"></a>
</div>
<div class="swiper-slide">
<a class="swiper-full-img" href="javascript:;"><img src="p2.jpg"></a>
</div>
<div class="swiper-slide">
<a class="swiper-full-img" href="javascript:;"><img src="p3.jpg"></a>
</div>
<div class="swiper-slide">
<a class="swiper-full-img" href="javascript:;"><img src="p4.jpg"></a>
</div>
<div class="swiper-slide">
<a class="swiper-full-img" href="javascript:;"><img src="p5.jpg"></a>
</div>
</div>
</div>
<script src="AwesomeSwiper.standalone.min.js"></script>
<script>
new AwesomeSwiper().init('#autoFixFullImg', {
autoFixFullImg: true,
pagination: {
color: 'white'
},
navigation: {
color: 'white'
}
});
</script>
</body>
</html>