jQuery UI扁平垂直手風琴切換特效代碼



82 324 109



特效描述: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

加群請備注:從官網了解到

老夫子电子