需要引入的文件
css部分
<link href="https://cdn.bootcdn.net/ajax/libs/Swiper/5.0.0/css/swiper.css" rel="stylesheet">
<style>
.swiper-container {
width: 500px;
height: 400px;
margin-left: 0;
}
.swiper-slide {
background-color: slategray;
font-size: 14px;
height: auto;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 30px;
}
.swiper