Html
    Css
    Js

    
                        
 * {
	padding:0;
	margin:0;
}
li {
	list-style:none
}
.wrapBox {
	width:400px;
	margin:50px auto;
	position:relative;
}
.swiperBox img {
	width:100%;
	display:none;
}
.swiperBox .active {
	display:block;
}
.nav {
	position:absolute;
	right:20px;
	bottom:25px;
}
.nav li {
	width:20px;
	height:20px;
	border-radius:50%;
	background-color:#000;
	float:left;
	margin:0 10px;
	display:flex;
	align-items:center;
	justify-content:center;
}
.nav .active {
	background-color:red;
	color:#ffffff;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

简易js轮播图(原创)

更新时间:2019-12-15 23:13:14

0