JqueryUI工具提示可防止< select>元素下拉在IE 11中停留 [英] JqueryUI tooltip prevents <select> element dropdown from staying down in IE 11

查看:73
本文介绍了JqueryUI工具提示可防止< select>元素下拉在IE 11中停留的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IE 11中打开这个HTML并允许编写脚本时,单击下拉菜单会使其闪烁起来并立即消失。有任何想法吗?



这是一个更大的应用程序,包含样式和其他元素,但这是重现它的最低限度。

我已经尝试了一些技巧来解决这个问题 - 在onclick和onmouseover中,您可以看到我尝试删除属性的脚本。然而,无论什么时候下拉菜单已经损坏了它。它甚至发生在我删除HTML顶部的脚本以使工具提示出现时;它不会出现,但下拉菜单仍然被打破。

 < html> 
< script type =text / javascriptsrc =http://code.jquery.com/jquery-1.11.1.js>< / script>
< script type =text / javascriptsrc =http://code.jquery.com/ui/1.11.2/jquery-ui.js>< / script>
< script type =text / javascript>
$([data-tooltip-open = true])。 $(this).data('content'),
position:{
my:center bottom-20,
at:center top,
using:function (position,feedback){
$(this).css(position);
$(< div>)
.addClass(arrow)
.addClass (feedback.vertical)
.addClass(feedback.horizo​​ntal)
.appendTo(this);
}
}
})。tooltip(open);
});
< / script>< body>
< form>
发送“验证码”获取 | 15天全站免登陆