如何在fancybox中上传新的html?
$('#Create').click(function() { $.fancybox({ What should be the content over here? (lets say i want to load stackoverflow.com) });
该文档就在网站上,您可以使用iframe:
$("#iframe").fancybox({ 'width' : '75%', 'height' : '75%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' });
HTML
<a href="http://www.example?iframe">This goes to iframe</a> or <a id="iframe" href="http://www.example">This goes to iframe</a>