当指针缓慢移动时,Internet Explorer 会保留一个微小的垂直间隙,导致鼠标悬停

Internet Explorer keeps a tiny, whiney vertical gap causing mouseout when pointer moves slowly

我问 问题得到解决(两种不同的方法)。但是,我注意到更正后的行为仅适用于 FF 和 Cr,而 IE 仍保持微小的垂直间隙。它变得更小了,这很好,但它仍然存在。

.open > .dropdown-menu {
  margin-top: initial;
}

请参阅 this fiddle 并比较浏览器之间的行为以了解详细信息。

如何让 IE 的行为与 class 中的其他子项一样?

IE 不理解 margin-topinitial 值:

您可以使用 auto 代替:

.open>.dropdown-menu{
    margin-top: auto;
}

这是你的 jsfiddle 的分支:
https://jsfiddle.net/0a67pyd2/4/

签到 chrome/firefox/ie。