Fancybox 2 iframe在IE中无法正常工作 [英] Fancybox 2 iframe not working correctly in IE

查看:139
本文介绍了Fancybox 2 iframe在IE中无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Fancybox 2.0和Internet Explorer上遇到问题.在所有其他浏览器上都可以正常工作.

I'm having an issue with Fancybox 2.0 and Internet Explorer. It works fine on all other browsers.

在IE中,就像lightbox div位于iframe的顶部,我无法单击任何按钮.

In IE is like the lightbox div comes on top of the iframe and I can't click any buttons.

页面中的位置也不同于其他浏览器.

Also the position in the page is different than on other browsers.

这是我用来调用它的参数

This are the parameters I'm using to call it

$('.fancybutton').fancybox({
        type      : 'iframe',
        maxWidth    : 800,
        maxHeight   : 600,
        fitToView   : true,
        width       : '70%',
        height      : '80%',
        autoSize    : false,
        closeClick  : false,
        openEffect  : 'none',
        closeEffect : 'none'
});

任何帮助将不胜感激

我正在使用锚标记上的普通链接打开iframe

I'm opening the iframe with a normal link on an anchor tag

更新

我添加了DOCTYPE,并且iframe在所有浏览器中都可以正常打开,但是... 在此iframe中,我有许多链接,它可以用作弹出菜单.链接是简单的锚标记,但是当我单击IE中的链接时,没有任何反应.它可以在任何其他浏览器上完美运行:(

I added the DOCTYPE and the iframe is being opened fine in all browsers but... Inside this iframe i have a number of links, this works as a popup menu. The links are simple anchor tags, but when I click on the links in IE nothing happens. It works perfect on any other browsers :(

干杯, 费德里科

推荐答案

事实证明,我缺少JFK建议的DOCTYPE.

As it turns out I was missing the DOCTYPE as JFK suggested.

我在顶部添加了它,现在它在所有浏览器上都能正常工作

I added it at the top and it now works fine on all browsers

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

谢谢!

这篇关于Fancybox 2 iframe在IE中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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