【发布时间】:2012-08-16 11:12:30
【问题描述】:
我有一个名为 toprightbox 的 div,我正在使用 jquery 在点击时更改其 html:
$(".icon").click(function(){
$("#toprightbox").html('<a rel="prettyPhoto[artwork]" href="large.jpg">
<img src="thumbnail.jpg" width="100" height="100" /></a>');
}
上面通过 jQuery 对 html 的更改调用了 prettyPhoto 灯箱以在 prettyPhoto 灯箱中打开更大的图像...
我想知道为什么这不起作用。生成了链接 () 和 html,但显然在 jQuery 代码中进行 jQuery 调用似乎是不可能的。 PrettyPhoto 灯箱无法正常工作...请帮助!
【问题讨论】:
标签: jquery prettyphoto