Html
    Css
    Js

    
                        
html,body,div,ul,li {
	padding:0;
	margin:0;
}
ul,li,ol {
	list-style:none;
}
.box {
	position:relative;
	width:600px;
	height:300px;
	margin:20px auto;
}
.picture {
	width:600px;
	height:300px;
	overflow:hidden;
	position:absolute;
}
.picture ul {
	position:absolute;
	width:2400px;
	height:300px;
}
.picture ul li {
	float:left;
	width:600px;
	height:300px;
}
.control {
	position:absolute;
	bottom:0px;
	left:450px;
}
.control li {
	cursor:pointer;
	float:left;
	width:20px;
	height:20px;
	text-align:center;
	line-height:20px;
	background:lightblue;
	margin:4px;
	border-radius:5px
}
.control .active {
	background:yellow;
}

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

原生js轮播图(原创)

0