在fancybox中打开html页面 [英] Open html page within fancybox

查看:146
本文介绍了在fancybox中打开html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ive在网上找了一些例子,但我不能资助任何。

Ive looked for some examples online but i couldn't fund any.

如何在fancybox中上传新的html?

how can i upload a new html within fancybox?

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

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

 });


推荐答案

文档在网站上是正确的,您可以使用iframe:

The documentation is right on the site, you can use an 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

You can find all that info here: http://fancybox.net/howto

这篇关于在fancybox中打开html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆