jQuery UI模态对话框在IE6中的下拉列表后面滑动 [英] jQuery UI modal dialog sliding behind dropdownlists in IE6

查看:100
本文介绍了jQuery UI模态对话框在IE6中的下拉列表后面滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将jQuery UI对话框放到了网页中.这是我第一次使用它.我以为我已经正确设置了bgiframe属性,但是当我在IE6中检查它时,它仍然落后于dropdownlists.这是我的JavaScript代码.页面上没有任何闪光灯.一个简单的div,其中包含文本,在'jClick'的文本周围有一个锚点.有什么想法为什么会在IE6中发生?

I've just put the jQuery UI dialog into a web page. It's the first time I've used it. I thought I had set the bgiframe property correctly but when I check it in IE6 it's still slipping behind dropdownlists. Here's my javascript code. There's nothing flash on the page. A simple div with the text in and an anchor around some text for the 'jClick'. Any ideas why this is happening in IE6?

$(document).ready(function(){
    $("#dialog").dialog({
      bgiframe: true, autoOpen: false,
      overlay: { backgroundColor: '#000', opacity: 0 },
      width: 400,
      height: 200,
      modal: true,
      buttons: {
                'Delete all items in recycle bin': function() {
                    $(this).dialog('close');},
                Cancel: function() {$(this).dialog('close');}
            }
    });

    $("#jClick").click(function(event){
        $("#dialog").dialog('open');
        event.preventDefault();
    });

});

推荐答案

您需要使用jquery插件,它称为bgiframe iirc.在那里,您会找到对所见行为的解释.

you need to use a jquery plugin, it's called bgiframe iirc. there you'll find explanation of the behavior you see.

这篇关于jQuery UI模态对话框在IE6中的下拉列表后面滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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