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); }
设置属性draggable 为false即可
参考地址:https://forum.jquery.com/topic/jquery-ui-dialog-extremely-slow-with-long-select-on-ie