Fancybox 不适合我,但我无法弄清楚。我想我按要求做了一切。代码资料:
<script src="/wp-content/themes/ase/js/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="/wp-content/themes/ase/js/transition.js" type="text/javascript"></script>
<script src="/wp-content/themes/ase/fancybox/jquery.mousewheel-3.0.4.pack.js" type="text/javascript"></script>
<script src="/wp-content/themes/ase/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<link href="/wp-content/themes/ase/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
$('.fancybox').fancybox();
</script>
之后:
<a href="/wp-content/gallery/uber-uns/armatur-1.png" class="fancybox" rel="fancybox">/wp-content/gallery/uber-uns/armatur-1.png</a>
<a href="/wp-content/gallery/uber-uns/armatur-2.png" class="fancybox" rel="fancybox">/wp-content/gallery/uber-uns/armatur-2.png</a>
<a href="/wp-content/gallery/uber-uns/armatur-3.png" class="fancybox" rel="fancybox">/wp-content/gallery/uber-uns/armatur-3.png</a>
链接是绝对的,因为它们是由 WordPress 创建的。我的错误在哪里?