:hover is not working properly in IE9

前端 未结 4 1748
天涯浪人
天涯浪人 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:56

    I recently had a hover issue in IE10 (not sure about lower versions) that was driving me crazy. I had my css hover set properly and it was for a div that contained an iframe. The issue was that when you hovered the div it would show the iframe but as soon as you tried to move the mouse into the iframe it would disappear again. I searched everywhere and found nothing for an acceptable answer for me except to use javascript or jquery. After days of trying to sort it out I found a very simple solution that worked for me. I simply removed the iframe from the div and used the object such as

    links

    I hope this helps folks save a lot of research time.

提交回复
热议问题