Open html page within fancybox

前端 未结 1 1941
遥遥无期
遥遥无期 2020-12-06 19:59

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

how can i upload a new html within fancybox?

 $(\'#Create\').click(function() {
 $.fanc         


        
相关标签:
1条回答
  • 2020-12-06 20:32

    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>
    

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

    0 讨论(0)
提交回复
热议问题