【问题标题】:Open html page within fancybox在fancybox中打开html页面
【发布时间】:2012-01-26 15:01:03
【问题描述】:

我在网上找了一些例子,但我找不到任何资金。

如何在fancybox 中上传新的html?

 $('#Create').click(function() {
 $.fancybox({

 What should be the content over here?
 (lets say i want to load stackoverflow.com)

 });

【问题讨论】:

    标签: javascript html css fancybox


    【解决方案1】:

    文档就在网站上,您可以使用 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 2012-05-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-31
      • 1970-01-01
      相关资源
      最近更新 更多