1 Star 0 Fork 0

刘校东/react-sty

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
slider.html 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
lxd-hpy 提交于 2021-10-24 22:47 . -
<!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>
<style>
.carousel {
position: relative;
border: 1px solid black;
display: inline-block;
}
img {
height: 400px;
display: none;
}
img.active {
display: block;
}
.slider {
/* height: 18px; */
/* width: 180px; */
/* background-color: #666; */
position: absolute;
left: 50px;
bottom: 40px;
}
.indicator {
/* height: 18px; */
/* width: 18px; */
display: block;
float: left;
/* background-color: yellow; */
/* border: 1px solid black; */
box-sizing: border-box;
margin-right: 4px;
}
.indicator::before {
content: "";
height: 11px;
width: 11px;
box-sizing: border-box;
border: 3px solid #666;
opacity: .3;
display: block;
float: left;
border-radius: 50%;
}
.indicator.active::after {
content: "";
height: 11px;
width: 11px;
background-color: white;
display: block;
border-radius: 50%;
}
</style>
</head>
<body>
<div class="carousel">
<div class="img">
<img class="active" src="https://imgcps.jd.com/img-cubic/creative_server_cia_jdcloud/v2/2000366/59973545811/FocusFullshop/CkRqZnMvdDEvMTg2NjAzLzM5LzE0NDkzLzQxNzk0Ny82MGY4ZWM1ZUU2OTM5MTJhYy9hMzU4NGU1OTVhYzEyZTJiLnBuZxIJMi10eV8wXzUzMAI47ot6QhMKD-WNjuS4uueslOiusOacrBAAQhEKDeenkuadgOS7tzYzODgQAUIQCgznq4vljbPmiqLotK0QAkIHCgPmiqIQB1jT3s613wE/cr/s/q.jpg" />
<img src="https://img14.360buyimg.com/babel/s1180x940_jfs/t1/170210/26/26239/131007/616cd997Ecbe5ae6f/b92b3b715211325f.jpg.webp" alt="">
</div>
<div class="slider">
<i class="indicator active"></i>
<i class="indicator"></i>
<i class="indicator"></i>
<i class="indicator"></i>
<i class="indicator"></i>
<i class="indicator"></i>
<i class="indicator"></i>
</div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/liu_school/react-sty.git
git@gitee.com:liu_school/react-sty.git
liu_school
react-sty
react-sty
master

搜索帮助