-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (56 loc) · 1.49 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/jquery.slider.js"></script>
<style>
.main{position: relative;
width: 100%;
height: 300px;
}
.slider-div {position: absolute;
top:10%;
left: 40%;
/* visibility: hidden;*/
background-position: center;
background-size: cover;
background-repeat: repeat;
width: 250px;
height: 200px;
}
.left-one{position: absolute;
left: 20%;
top: 5%;
width: 0; height: 0;
border-top: 50px solid transparent;
border-right: 50px solid gray;
border-bottom: 20px solid transparent;
}
.right-one{
position: absolute;
right: 20%;
top: 5%;
width: 0; height: 0;
border-top: 50px solid transparent;
border-left: 50px solid gray;
border-bottom: 20px solid transparent;
}
</style>
</head>
<body>
<div class="main">
<div class="slide"> </div>
<!--
<div class="slide"> </div>
<div class="slide"></div>
-->
</div>
<script>
$(function(){
$('.main').slider();
})
</script>
</body>
</html>