Fancybox Ajax没有在IE中加载

时间:2011-01-24 04:12:01

标签: jquery

我遇到了Fancybox Ajax的问题​​。

它在FF中工作正常,但在IE7中没有。弹出布局中断,内容未加载。

您可以在此处查看:http://www.sumsy.com/temp/templatesys/config.php?template=1

基本上,在我的php页面上,它有以下内容:

<div id="content">
     <a href="config.php?template=1">Template 1</a>
     <a href="config.php?template=2">Template 2</a>
     </div>

在另一页上,我使用:

来调用它
<a id="changeTemplate" href="modules/templateList.php">Change Template</a>

不确定为什么它在IE7中没有正常显示。 如果我使用iframe(class =“iframe”)代替,那么它可以正常工作。

先谢谢。

1 个答案:

答案 0 :(得分:1)

'height':'auto',

为你的javascript,删除逗号。如果它是最后一个,那就不应该存在。

抱歉,我没有读完你的其余问题。据我所知,fancybox要求您具体说明是否为iframe。试试这样的事情

$(".frame_modal_box").fancybox({
'width'         : 350,
'autoScale'         : true,
'centerOnScroll'    : true,
'type'          : 'iframe'
});
相关问题