Html
    Css
    Js

    
                        
  * {
	margin:0;
	padding:0;
}
#pic {
	width:750px;
	height:320px;
	margin:50px auto;
	position:relative;
	overflow:hidden;
}
ul {
	position:absolute;
	left:0;
	width:4000px;
	height:320px;
	transition:2s;
}
li {
	width:750px;
	height:320px;
	float:left;
	list-style:none;
}
img {
	width:750px;
	height:320px;
	display:block;
}
p {
	width:100px;
	height:15px;
	position:absolute;
	bottom:10px;
	right:20px;
}
b {
	display:block;
	float:left;
	margin-right:5px;
	width:10px;
	height:10px;
	border-radius:10px;
	background:#fff;
}
.left,.right {
	display:block;
	width:20px;
	height:30px;
	text-align:center;
	font-size:20px;
	line-height:30px;
	position:absolute;
	top:50%;
	margin-top:-15px;
	background:#ffdc46;
}
.left {
	left:10px;
}
.right {
	right:10px;
}

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

原生js面向对象轮播图

更新时间:2020-07-02 00:27:49

0