当指针移动缓慢时,Internet Explorer会保持一个微小的垂直间隙,导致鼠标移出 [英] Internet Explorer keeps a tiny, whiney vertical gap causing mouseout when pointer moves slowly

查看:193
本文介绍了当指针移动缓慢时,Internet Explorer会保持一个微小的垂直间隙,导致鼠标移出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我询问了



您可以使用 auto 来代替:

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



$ b

这是你的jsfiddle的一个分支:

< a href =https://jsfiddle.net/0a67pyd2/4/ =nofollow noreferrer> https://jsfiddle.net/0a67pyd2/4/

检入chrome / firefox / ie。


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.

这篇关于当指针移动缓慢时,Internet Explorer会保持一个微小的垂直间隙,导致鼠标移出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆