Swiper快速切换插件
swiper2.0和3.0的区别: 3.0支持部分PC端浏览器 3.0合并js,新增动画功能animate.css 3.0继续更新,2.7.6停止更新 html结构: <div class="swiper-container"> <div class="swiper-wrap"> <div class="swiper-slide"> </div> </div> </div> 插件及参数: json格式数据配置 参数值为数字、字符串、函数 支持各种状态的轮播回调,参数只有一个,就是当前轮播的对象 swiper下载: https://www.swiper.com.cn/download/index.html (我下的最新版已经到swiper5了) swiper水平滚动基本示例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> <link rel="stylesheet" href="lib/swiper.min.css"> <style> *{margin:0;padding:0;} html