1

我使用的是 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。

非常感谢您的帮助

4

1 回答 1

0

根据我上一个项目的经验,我使用 php 检查这个例子:

<?php 

echo '<td><div align="center"><a rel="facebox" href="vieworders.php?id='.$row['confirmation'].'" title="Click To View Orders" style="color:#FCFEFF">View Orders</a>';

?>
于 2016-03-01T22:10:33.940 回答