banner.html
2.5 KB
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
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>首页</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1043230_jxegrvbhrr.css">
<link rel="stylesheet" type="text/css" href="css/banner.css">
<link rel="stylesheet" type="text/css" href="css/swiper-3.4.2.min.css">
<script src="js/base.js"></script>
<style>
.banner{
width: 7.5rem;
height: 100%;
position: relative;
}
.banner_pic{
width: 7.5rem;
height:100%;
display: flex;
}
.banner_pic img{
width: 100%;
height: 100%
}
.swiper-pagination-bullet{
background-color: #7ECEF4;
}
.swiper-pagination-bullet-active{
background-color: #ffffff;
}
/*按钮之间的间隔*/
.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{
margin: 0 0.6rem;
}
</style>
</head>
<body>
<div class="banner">
<!-- Swiper -->
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide banner_pic">
<img src="images/banner.png">
<div class="btn_button">点击进入 天津汽车零部件展网站>></div>
</div>
<div class="swiper-slide banner_pic">
<img src="images/banner.png">
<div class="btn_button">点击进入 工业装配及自动化展网站>></div>
</div>
<div class="swiper-slide banner_pic">
<img src="images/banner.png">
<div class="btn_button">点击进入 天津汽车零部件展网站>></div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/swiper-3.4.2.jquery.min.js"></script>
<script>
$('.btn_button').click(function () {
console.log(111)
window.location.href = "index.html";
})
var swiper = new Swiper('.swiper-container',{
// autoplay: {
// delay: 3000,
// disableOnInteraction: false,
// },
loop: true, // 循环模式选项
pagination: {
el: '.swiper-pagination',
},
});
</script>
</html>