zoukankan      html  css  js  c++  java
  • jqueryUI弹出框问题

    jqueryui dialog中 select选不中或比较慢

    dialog = function(Window,dialogDivId,title,buttons,css) {
                css = css||{};
                var width = css.width||"500px";
                _this = this
                subWindow.$("#" + dialogDivId).wijdialog({
                    autoOpen : true,
                    height : "auto",
                    width : width,
                    title: title,
                    modal : true,
                    position: "top",
                    draggable : true,
                    buttons : buttons,
                    open : function(event, ui) {
                        $('body').css('overflow', 'hidden');
                        $('.ui-widget-overlay').css('height', $(document).height());
                        $(" .mainContent").css('z-index','1500');
                        _this.isBlock = true;
                        _this.block(false);
                    },
                    close : function(event, ui) {
                        $('body').css('overflow', 'auto');
                        $("#" + dialogDivId).wijdialog("close");
                        $("#" + dialogDivId).wijdialog("destroy");
                        $(" .mainContent").css('z-index','');
                        $("#" + dialogDivId).remove();
                        _this.isBlock = false;
                        _this.unblock();
                    },
                    captionButtons : {
                        pin : {
                            visible : false
                        },
                        refresh : {
                            visible : false
                        },
                        toggle : {
                            visible : false
                        },
                        minimize : {
                            visible : false
                        },
                        maximize : {
                            visible : false
                        }
                    }
                });
                $("#" + dialogDivId).wijdialog('open');
                $("#" + dialogDivId).css("z-index", 10000);
            }
    View Code

    设置属性draggable 为false即可

    参考地址:https://forum.jquery.com/topic/jquery-ui-dialog-extremely-slow-with-long-select-on-ie

  • 相关阅读:
    git 常用命令速查表
    Git常用命令备忘
    display:inline-block
    JS 封装的结构关系
    IE6,7,8 CSS HACK
    JS 观察者模式
    JS 数组迭代方法
    JS 单例模式
    JS Closure 闭包
    Currying and Uncurrying Js
  • 原文地址:https://www.cnblogs.com/cora/p/4330429.html
Copyright © 2011-2022 走看看