当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
visitor009 提交于 2020-04-27 21:11 . 增加初始化配置,优化交互
<!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"
},
delay: 2000,
autoPlay: true
});
</script>
<body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化