是否可以使用fancybox从另一个页面加载特定的div #id而不是通过iframe加载整个页面?jQuery fancybox - iframe中的目标特定div #id
例如,我可以用
$('#link-whole').fancybox({
'width' : '80%',
'height' : '80%',
'type' : 'iframe',
});
与
<a id="link-whole" href="somepage.html">link 1</a>
所有“somepage.html”加载到的iframe,但我如何从一个div id为加载JUST内容“目标”(例如)?
完美的目标页面的特定部分!谢谢!! 如果目标页面在另一个域上,有没有办法实现这一点? – 2010-06-16 18:23:07
有了JSONP请求和使用http://pipes.yahoo.com/pipes/你可以做到。 – PetersenDidIt 2010-06-16 18:36:51