jQuery UI扁平垂直手风琴切换特效代码



77 307 103



特效描述:jQueryUI 扁平垂直手风琴 切换特效代码,jQuery UI扁平垂直手风琴切换特效代码

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/zzsc-demo.css">
<link rel="stylesheet" href="css/style.css">

2. 引入JS

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>

3. HTML代码

<div class="zzsc-container">
	<section class="accordion">
		   <div class="item">
				<img src="img/Location-Pin.png" alt="">
				<h3>Location</h3>
		   </div>
				<p>t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using</p>
			<div class="item">
				<img src="img/Headphones.png" alt="">
				<h3>Music</h3>
		   </div>
			<p>t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using</p>
			<div class="item">
				<img src="img/Lightbulb.png" alt="">
				<h3>Notes</h3>
		   </div>
				<p>t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using</p>
			<div class="item">
				<img src="img/Bookmarks.png" alt="">
				<h3>Books</h3>
		   </div>
				<p>t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using</p>
			<div class="item">
				<img src="img/Lightning-Bolt.png" alt="">
				<h3>Tendances</h3>
		   </div>
			   <p>t is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using</p>
	   </section>
</div>
<script type="text/javascript">
	(function ($) {
		'use strict';
		$('.item').on("click", function () {
			$(this).next().slideToggle(100);
			$('p').not($(this).next()).slideUp('fast');
		});
	}(jQuery));
</script>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滚动切换 滚动条切换 滑动选项卡 滑动切换 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 滑动手风琴 收缩展开 展开收缩 收缩 展开 收缩菜单 收缩导航 手风琴 水平手风琴 垂直手风琴 图片手风琴 文字手风琴 手风琴插件

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到