DOM结构如下:
<div id="picLook"> <div class="picLookshow" id="picLookshow"> <div class="plImg"><i></i><img src="img/001.jpg" /></div> <div class="plImg"><i></i><img src="img/002.jpg" /></div> </div> </div>
此处可添加图片,i标签是为了让每张图片能垂直居中,必不可少
<div class="picLook" id="picLookhide"> <div class="plClose">×</div> <div class="plNext">↓</div> </div>
调用如下:
$(function() { $("#picLook").picLook({ speed: 600 //此项为下滑速度,默认为800 }); })