Html
    Css
    Js
  * {
	margin:0;
	padding:0;
}
img {
	display:block;
}
ul {
	list-style:none;
}
.king {
	width:852px;
	margin:100px auto;
	background:url(images/bg.png) no-repeat;
	overflow:hidden;
	padding:10px;
}
.king ul {
	overflow:hidden;
}
.king li {
	position:relative;
	float:left;
	width:69px;
	height:69px;
	margin-right:10px;
}
.king li.current {
	width:224px;
}
.king li.current .big {
	display:block;
}
.king li.current .small {
	display:none;
}
.big {
	width:224px;
	display:none;
}
.small {
	position:absolute;
	top:0;
	left:0;
	width:69px;
	height:69px;
	border-radius:5px;
}

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

jQuery手风琴案例(原创)

更新时间:2021-09-08 09:18:39

jquery手风琴案例

0