实现三位轮播图--半成品

这段代码展示了如何使用HTML、CSS和jQuery创建一个简单的图片轮播效果。CSS用于设置样式,实现轮播容器和控制按钮的布局,而jQuery则用于处理图片的切换和导航按钮的交互。该轮播具有左右导航按钮和底部的点状指示器。
摘要由CSDN通过智能技术生成

效果:
在这里插入图片描述

<link rel="stylesheet" href="./css/default.css">
<!--引包,引入JQ-->
<script src="js/jquery.min.js"></script>

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
default.css

*{
margin: 0;
padding: 0;
}
div{
position: relative;
width: 600px;
height: 400px;
border: 1px solid black;
margin: 50px auto;
overflow: hidden;
}

ul{
position: absolute;
width: 600px;
height: 400px;
list-style: none;
}

img{
width: 600px;
height: 400px;
}

ul li{
position: absolute;
width: 600px;
height: 400px;
left: 600px;
}

.current{
left: 0px;
}

.l_btn{
position: absolute;
width: 35px;
height: 35px;
left: 0px;
top: 40%;

}

.r_btn{
position: absolute;
width: 35px;
height: 35px;
left: 565px;
top: 40%;
}

ol{
position: absolute;
width: 150px;
height: 25px;
/background: red;/
left: 38%;
bottom: 5px;
list-style: none;
}

ol li{
float: left;
width: 25px;
height: 25px;
background: black;
border-radius: 50%;
color: white;
text-align: center;
line-height: 25px;
margin-left: 3px;
}

.cur{
background-color: green;
transform: scale(1.2);
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值