用jQuery 实现界面轮播、点击切换图片
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>自动轮播界面</title>
<style>
.wrapper {
width: 600px;
height: 350px;
border: 1px solid red;
position: relative;
}
/* 5张图片叠加到一块 */
.wrapper img {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
display: none;
}
.wrapper img:nth-of-type(1) {
display: block;
}
/* 小圆点 */
.btn {
width: 150px;
display: flex;
justify-content: space-around;
position: absolute;
left: 225px;
bottom: 10px;
z-index: 100
}
/* 左右箭头 */
.wrapper a {
text-decoration: none;
font-size: 50px;
color: red;
posi