Bootstrap

最基础的js案例-轮播图

1.html部分

图片可以换成自己定义的图片

<!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>
  <link rel="stylesheet" href="./css/swiper.css">
  <script src="./js/animate.js"></script>
  <script src="./js/swiper.js"></script>
</head>
<body>
  <div id="swiper-wrap">
    <!-- 轮播图 -->
    <ul class="img-container">
      <li><img src="./img/slideshow_01.JPG" alt=""></li>
      <li><img src="./img/slideshow_02.JPG" alt=""></li>
      <li><img src="./img/slideshow_03.JPG" alt=""></li>
      <li><img src="./img/slideshow_04.JPG" alt=""></li>
      <li>
;