javascript – 在fancybox中打开html页面

前端之家收集整理的这篇文章主要介绍了javascript – 在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

@L_403_0@
原文链接:https://www.f2er.com/html/426740.html

猜你在找的HTML相关文章