jquery mobile手指滑動商品圖片切換代碼



103 410 137



特效描述:jquery mobile 手指滑動 商品圖片切換,一款非常實用的手機商品圖片展示特效

代碼結構

1. 引入CSS

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">

2. 引入JS

<script src="js/modernizr.js"></script>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mobile.min.js"></script>
<script src="js/main.js"></script>

3. HTML代碼

	<p class="credits">產品焦點圖特效</p>
	<ul class="cd-gallery">
		<li>
			<a href="#">
				<ul class="cd-item-wrapper">
					<li class="selected">
						<img src="img/ugmonk-tshirt-1.jpg" alt="Preview image">
					</li>
					<li class="move-right" data-sale="true" data-price="$22">
						<img src="img/ugmonk-tshirt-2.jpg" alt="Preview image">
					</li>
					<li>
						<img src="img/ugmonk-tshirt-3.jpg" alt="Preview image">
					</li>
				</ul> <!-- cd-item-wrapper -->
			</a>
			<div class="cd-item-info">
				<b><a href="#0">Mountains</a></b>
				<em class="cd-price">$26</em>
			</div> <!-- cd-item-info -->
		</li>
		<li>
			<a href="#">
				<ul class="cd-item-wrapper">
					<li class="selected">
						<img src="img/ugmonk-cap-1.jpg" alt="Preview image">
					</li>
					<li class="move-right">
						<img src="img/ugmonk-cap-2.jpg" alt="Preview image">
					</li>
					<li>
						<img src="img/ugmonk-cap-3.jpg" alt="Preview image">
					</li>
				</ul> <!-- cd-item-wrapper -->
			</a>
			<div class="cd-item-info">
				<b><a href="#0">Baseball Cap</a></b>
				<em class="cd-price">$42</em>
			</div> <!-- cd-item-info -->
		</li>
		<li>
			<a href="#">
				<ul class="cd-item-wrapper">
					<li class="selected">
						<img src="img/ugmonk-bag-1.jpg" alt="Preview image">
					</li>
					<li class="move-right">
						<img src="img/ugmonk-bag-2.jpg" alt="Preview image">
					</li>
					<li>
						<img src="img/ugmonk-bag-3.jpg" alt="Preview image">
					</li>
				</ul> <!-- cd-item-wrapper -->
			</a>
			<div class="cd-item-info">
				<b><a href="#0">Messenger Bag</a></b>
				<em class="cd-price">$235</em>
			</div> <!-- cd-item-info -->
		</li>
		<li>
			<a href="#">
				<ul class="cd-item-wrapper">
					<li class="selected">
						<img src="img/ugmonk-tshirt-1.jpg" alt="Preview image">
					</li>
					<li class="move-right" data-sale="true" data-price="$22">
						<img src="img/ugmonk-tshirt-2.jpg" alt="Preview image">
					</li>
					<li>
						<img src="img/ugmonk-tshirt-3.jpg" alt="Preview image">
					</li>
				</ul> <!-- cd-item-wrapper -->
			</a>
			<div class="cd-item-info">
				<b><a href="#0">Mountains</a></b>
				<em class="cd-price">$26</em>
			</div> <!-- cd-item-info -->
		</li>
		<li>
			<a href="#">
				<ul class="cd-item-wrapper">
					<li class="selected">
						<img src="img/ugmonk-cap-1.jpg" alt="Preview image">
					</li>
					<li class="move-right">
						<img src="img/ugmonk-cap-2.jpg" alt="Preview image">
					</li>
					<li>
						<img src="img/ugmonk-cap-3.jpg" alt="Preview image">
					</li>
				</ul> <!-- cd-item-wrapper -->
			</a>
			<div class="cd-item-info">
				<b><a href="#0">Baseball Cap</a></b>
				<em class="cd-price">$42</em>
			</div> <!-- cd-item-info -->
		</li>
		<li>
			<a href="#">
				<ul class="cd-item-wrapper">
					<li class="selected">
						<img src="img/ugmonk-bag-1.jpg" alt="Preview image">
					</li>
					<li class="move-right">
						<img src="img/ugmonk-bag-2.jpg" alt="Preview image">
					</li>
					<li>
						<img src="img/ugmonk-bag-3.jpg" alt="Preview image">
					</li>
				</ul> <!-- cd-item-wrapper -->
			</a>
			<div class="cd-item-info">
				<b><a href="#0">Messenger Bag</a></b>
				<em class="cd-price">$235</em>
			</div> <!-- cd-item-info -->
		</li>
	</ul> <!-- cd-gallery -->
<script src="js/main.js"></script> <!-- Resource jQuery -->



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 滑動 滑塊 滑動門 觸屏滑動 滑動插件 滑塊插件 滾動切換 滾動條切換 滑動選項卡 滑動切換 疊加浮動層 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 層疊疊加 疊加層疊 層疊 疊加 加載更多 圖片疊加 圖片層疊 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 選項卡自動切換
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

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

老夫子电子