我在draggable弹出窗口中选择有问题,有时你无法选择选项。我正在尝试一切,但我还没有找到答案。在其他浏览器上它似乎工作正常(Chrome / Firefox)但我也必须支持IE。这是演示:http://jsfiddle.net/a9ntp/13/
var popup = $('<div>Hello world!</div>');
$(popup ).dialog({title: 'Text <select id="dropDown"><option>A</option><option>B</option><option>C</option><option>D</option></select>', draggable: false});
$('#dropDown').hover(
function(){
$(popup).dialog('option', 'draggable', false);
},
function(){
$(popup).dialog('option', 'draggable', true);
}
);
感谢您的帮助!
答案 0 :(得分:0)
直接从Redworth(JQuery团队)尝试这个HOTFIX
// HOTFIX: We can't upgrade to jQuery UI 1.8.6 (yet)
// This hotfix makes older versions of jQuery UI drag-and-drop work in IE9
(function($){var a=$.ui.mouse.prototype._mouseMove;$.ui.mouse.prototype._mouseMove=function(b){if($.browser.msie&&document.documentMode>=9){b.button=1};a.apply(this,[b]);}}(jQuery));
将它放在JQuery代码的开头。