1

我使用 prettyPhoto 来显示画廊、YouTube 和 Flash,但是当我使用单个图像时,我遇到了“刷新”问题。当我单击缩略图时,prettyPhoto 会打开,并将 #!prettyPhoto/0/ 附加到查询字符串中。但是当 prettyPhoto 关闭时,它并没有删除 /0/,因此刷新页面时会再次打​​开相同的图像。我查看了演示页面,它删除了 /0/。

我的代码再简单不过了。关于如何删除 /0/ 或阻止 prettyPhoto 在刷新时加载的任何想法?

<link href="css/prettyPhoto.css" rel="stylesheet" type="text/css" media="all" lang="en" xml:lang="en" charset="utf-8" />
<script src="/js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<a href="/templates/template9.jpg" rel="prettyPhoto" title="This is the description"><img src="/templates/template9.jpg" width="60" height="60" alt="This is the title" /></a>
<script type="text/javascript">
    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({social_tools:false,theme:'light_rounded'});});
</script>

我的开发页面: http: //www.sremarketing.com/untitled-3.html

4

1 回答 1

1

我将 pp 3.1.2 与新版本 (3.1.3) 一起使用,此问题已修复。

于 2011-08-18T22:54:30.803 回答