首页 > 其他 > 详细

prettyPhoto学习

时间:2014-06-16 06:48:06      阅读:345      评论:0      收藏:0      [点我收藏+]

实现效果:

bubuko.com,布布扣

bubuko.com,布布扣

实现图片遮罩展示效果。

实例代码:

bubuko.com,布布扣
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
    <title>Insert title here</title>
</head>

<script type="text/javascript">
  $(document).ready(function(){
    $("a[rel^=‘prettyPhoto‘]").prettyPhoto();
});</script>
<body>

<a href="img/banner_02.jpg" rel="prettyPhoto[pp_gal]" title="You can add caption to pictures.">
<img src="img/banner_02.jpg" width="60" height="60" alt="Red round shape" />
</a>
<a href="img/banner_01.jpg" rel="prettyPhoto[pp_gal]" title="You can add caption to pictures.">
<img src="img/banner_01.jpg" width="60" height="60" alt="Red round shape" />
</a>
</body>
</html>
bubuko.com,布布扣

prettyPhoto学习,布布扣,bubuko.com

prettyPhoto学习

原文:http://www.cnblogs.com/luckyflower/p/3783860.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!