【问题标题】:Fancybox 2 load page, flows beyond browser without scrollingFancybox 2 加载页面,流过浏览器而不滚动
【发布时间】:2012-06-23 10:14:54
【问题描述】:

我正在通过 fancybox 和 AJAX 动态加载页面。一切都很好,除非动态加载的页面对屏幕来说太高。它只会溢出屏幕底部。

我正在使用..

function dynamic_page(){        
    var url = "#ajax url here#";
    $.fancybox.showLoading();
    $.post(url, function(res){
        $.fancybox.open(res,{
            afterClose : function (){
                $("#remove_val").val(0);
            }
        });

        $.fancybox.update();
    });
}

当用户点击页面时,会动态重新加载,保持原来fancybox的宽高:

$.post(url, function(res){
            if(res){
                $("#page_load_here").html(res);
            }

如何根据动态加载页面的高度调整或重新调整花式框的大小?

所有帮助将不胜感激

【问题讨论】:

    标签: fancybox fancybox-2


    【解决方案1】:

    修复它: $.fancybox.update();

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-14
      • 1970-01-01
      • 1970-01-01
      • 2016-11-01
      相关资源
      最近更新 更多