-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (172 loc) · 5.57 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>黑马面面</title>
<link rel="stylesheet" href="./css/normalize.css" />
<!-- 先引入css文件 放到自己css文件的上面 -->
<link rel="stylesheet" href="./css/swiper.min.css" />
<link rel="stylesheet" href="./css/index.css" />
</head>
<body>
<section class="warp">
<!-- 头部区域 -->
<header class="header">黑马面面</header>
<!-- 导航栏部分 -->
<nav class="nav">
<a href="#" class="item">
<img src="./icons/icon1.png" alt="" />
<span>HR面试</span>
</a>
<a href="#" class="item">
<img src="./icons/icon2.png" alt="" />
<span>笔试</span>
</a>
<a href="#" class="item">
<img src="./icons/icon3.png" alt="" />
<span>技术面试</span>
</a>
<a href="#" class="item">
<img src="./icons/icon4.png" alt="" />
<span>模拟面试</span>
</a>
<a href="#" class="item">
<img src="./icons/icon5.png" alt="" />
<span>面试技巧</span>
</a>
<a href="#" class="item">
<img src="./icons/icon6.png" alt="" />
<span>薪资查询</span>
</a>
</nav>
<!-- go模块 -->
<section class="go">
<img src="./images/go.png" alt="" />
</section>
</section>
<!-- 就业指导模块 -->
<section class="content">
<!-- 头部 -->
<div class="con-hd">
<h4>
<span class="icon"><img src="./icons/i2.png" alt="" /></span>
就业指导
</h4>
<a href="#" class="more">更多>></a>
</div>
<!-- 旋转木马轮播图模块 -->
<div class="get_job_focus">
<!-- Swiper -->
<div class="swiper-container get_job_fo">
<div class="swiper-wrapper">
<div class="swiper-slide">
<a href="#"><img src="./images/pic.png" alt="" /></a>
<p>老师教你应对面试技巧</p>
</div>
<div class="swiper-slide">
<a href="#"><img src="./images/ldh.jpg" alt="" /></a>
<p>老师教你应对面试技巧</p>
</div>
<div class="swiper-slide">
<a href="#"><img src="./images/3.jpg" alt="" /></a>
<p>老师教你应对面试技巧</p>
</div>
</div>
</div>
<!-- Add Arrows 根据需求这个代码放到 container外面 添加左右箭头-->
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</section>
<!-- 充电学习模块 -->
<section class="content study_con">
<!-- 头部 -->
<div class="con-hd">
<h4>
<span class="icon"><img src="./icons/i2.png" alt="" /></span>
充电学习
</h4>
<a href="#" class="more">更多>></a>
</div>
<!-- 学习模块轮播图模块 -->
<div class="study">
<!-- Swiper -->
<div class="swiper-container study_fo">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="./images/pic1.png" alt="" />
<h5>说低调英语,告别中式英语</h5>
<p>156人学习</p>
</div>
<div class="swiper-slide">
<img src="./images/pic2.png" alt="" />
<h5>说低调英语,告别中式英语</h5>
<p>156人学习</p>
</div>
<div class="swiper-slide">
<img src="./images/pic1.png" alt="" />
<h5>说低调英语,告别中式英语</h5>
<p>156人学习</p>
</div>
<div class="swiper-slide">
<img src="./images/pic1.png" alt="" />
<h5>说低调英语,告别中式英语</h5>
<p>156人学习</p>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
</section>
<footer class="footer">
<a href="#" class="item">
<img src="./icons/home.png" alt="" />
<p>首页</p>
</a>
<a href="#" class="item">
<img src="./icons/ms.png" alt="" />
<p>模拟面试</p>
</a>
<a href="#" class="item">
<img src="./icons/net.png" alt="" />
<p>技术面试</p>
</a>
<a href="#" class="item">
<img src="./icons/user.png" alt="" />
<p>我的首页</p>
</a>
</footer>
<script src="./js/flexible.js"></script>
<!-- 比如引入js文件 -->
<script src="./js/swiper.min.js"></script>
<script>
// 第一个函数里面是 就业指导轮播图
(function () {
var swiper = new Swiper(".get_job_fo", {
// 能够显示的 slider的个数
slidesPerView: 2,
// 每一个slide之间的距离
spaceBetween: 30,
centeredSlides: true,
loop: true,
// 添加左右箭头
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
})();
// 第二个函数的轮播图
(function () {
// 如果有多个轮播图最好修改下 swiper-container
var swiper = new Swiper(".study_fo", {
// 我们可以可以看看到的是 2个半
slidesPerView: 2.2,
spaceBetween: 20,
});
})();
</script>
</body>
</html>