加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
visitor009 提交于 2019-12-03 15:16 . 适配pc,改为支持3张以上图片
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>旋转木马</title>
<link rel="stylesheet" href="./build/css/3dSwiper.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
overflow: hidden;
}
ul {
list-style: none;
}
@media screen and (max-width: 768px){
.swiper-navigator {display: none;}
}
</style>
</head>
<body>
<div class="swiper-container ">
<ul class="swiper-wrap">
<li>
<img src="./images/3dSwiper/3dBanner1.png">
</li>
<li>
<img src="./images/3dSwiper/3dBanner2.png">
</li>
<li>
<img src="./images/3dSwiper/3dBanner3.png">
</li>
<li>
<img src="./images/3dSwiper/3dBanner4.png">
</li>
<li>
<img src="./images/3dSwiper/3dBanner5.png">
</li>
<li>
<img src="./images/3dSwiper/3dBanner6.png">
</li>
</ul>
<ul class="swiper-dots"></ul>
<ul class="swiper-navigator">
<li class="swiper-btn-prev">&lt;</li>
<li class="swiper-btn-next">&gt;</li>
</ul>
</div>
<script src="./build/js/3dSwiper.js"></script>
<script>
new Swiper(".swiper-container",{
pagination: ".swiper-dots",
navigator: {
prev: ".swiper-btn-prev",
next: ".swiper-btn-next"
}
});
</script>
<body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化