5
我在網上找了一些例子,但我無法資助任何。在fancybox內打開html頁面
如何在fancybox中上傳新的html?
$('#Create').click(function() {
$.fancybox({
What should be the content over here?
(lets say i want to load stackoverflow.com)
});
我在網上找了一些例子,但我無法資助任何。在fancybox內打開html頁面
如何在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>
你可以找到所有的信息在這裏:http://fancybox.net/howto