我使用的是 fancybox 2.1.5,我的 html 和 js 看起来像这样:
<a href="new-window" class="wrap">
any content
<a href="google.com" target="_blank">go google it</a>
</a>
$('.wrap').fancybox();
问题是如何通过点击它而不是整个fancybox模式窗口来打开谷歌链接。现在它打开了 url 和 modal,这是不对的。点击谷歌链接应该打开为fancybox。
非常感谢您的帮助