:hover is not working properly in IE9

前端 未结 4 1753
天涯浪人
天涯浪人 2020-12-31 09:36

I have a simple CSS dropdown menu with an iframe inside it. When I hover my mouse over the dropdown menu, the menu drops down. But when my mouse hovers the iframe inside the

4条回答
  •  渐次进展
    2020-12-31 09:55

    Unfortunately, this seems to be a browser bug, going back many IE versions. You can use a JS solution as a backup to IE. I've created a jsFiddle example, adapting code from another solution addressing this issue.

    Hope that helps!

    Edit: further testing in IE9 shows that though the iframe is displayed, hovering over the scrollbars hides it immediately. There is likely a more involved JS fix for this, but it's up to you if you'd like to implement it.

提交回复
热议问题