1 Star 2 Fork 0

范德萨/HTMLCourse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.html 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
范德萨 提交于 2023-02-18 15:21 +08:00 . create
<!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>Document</title>
</head>
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css">
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"> </script>
<body>
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
</div>
</div>
</body>
<script>
var mySwiper = new Swiper('.swiper', {
loop: true, // 循环模式选项
})
</script>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
div {
user-select: none;
}
.swiper {
width: 50%;
height: 300px;
}
.swiper-slide{
background-color: blue;
}
</style>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ffffffds/htmlcourse.git
git@gitee.com:ffffffds/htmlcourse.git
ffffffds
htmlcourse
HTMLCourse
master

搜索帮助