2013-02-07 44 views

回答

0

您可能首先要确保你已经叫prettyPhoto脚本和样式表在你的脑袋标签

<script type="javascript" src="prettyPhoto/js/jquery.prettyPhoto.js" /> 
<link rel="stylesheet" href="prettyPhoto/css/prettyPhoto.css" /> 

那么一定要包括包含您标记您的链接后,以下

<script type="text/javascript"> 
      jQuery(document).ready(function() 
      { 
       jQuery("a[rel^='prettyPhoto']").prettyPhoto(
       { 
        deeplinking: false 
       }); 
      }); 
     </script>