jquery特效之多图层叠展示效果

方彦 2019-11-19 386 阅读

特效描述:利用jquery实现多图层叠展示效果,利用jquery实现多图层叠展示效果

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" media="screen" href="css/reset.css" />

<link rel="stylesheet" type="text/css" media="screen" href="css/960.css" />

<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />

2. 引入JS

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

</script>

<script type="text/javascript" src="js/demo.js">

</script>

3. HTML代码

<div class="container_12" id="wrapper">
<div class="grid_8" id="content">
<!-- relevant for the tutorial - start -->
<div class="grid_6 pfix_1 suffix_1" id="gallery">
<div id="pictures">
<img src="images/picture1.png" alt="" />
<img src="images/picture2.png" alt="" />
<img src="images/picture3.png" alt="" />
<img src="images/picture4.png" alt="" />
<img src="images/picture5.png" alt="" />
</div>
<div class="grid_3 alpha" id="pv">
<a href="#pvious">&laquo; Previous Picture</a>
</div>
<div class="grid_3 omega" id="next">
<a href="#next">Next Picture &raquo;</a>
</div>
</div>
<!-- relevant for the tutorial - end --><br />
<br />
<div class="clear"></div>
</div>
</div>
<div style="text-align:center;clear:both">
</div>

演示地址下载地址

最新游戏