当前位置: 动力学知识库 > 问答 > 编程问答 >

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

问题描述:

I asked about the vertical gap causing mouseout on slow pointer movement and the issue got resolved (two separate approaches). However, I noticed that the corrected behavior only applies to FF and Cr, while IE still keeps a tiny vertical gap. It got much tinier, which is good, but it's still there.

.open > .dropdown-menu {

margin-top: initial;

}

See this fiddle and compare the behavior between browsers for details.

How can I make IE behave like the other children in the class?

网友答案:

IE doesn't understand the initial value of the margin-top:

You can use auto instead:

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

Here is a fork of your jsfiddle:
https://jsfiddle.net/0a67pyd2/4/

Checked in chrome/firefox/ie.

分享给朋友:
您可能感兴趣的文章:
随机阅读: