IE8 does not hover when using an li with position:absolute

后端 未结 2 1554
半阙折子戏
半阙折子戏 2021-01-24 20:40

I have a sort of an image map, where I\'ve used li\'s to create the elements, and on hovering the information pops up. The html code is:

  • 2条回答
    •  [愿得一人]
      2021-01-24 21:42

      Internet Explorer has some problems with dealing with :hover events, especially for li elements. You need to use this: http://www.xs4all.nl/~peterned/csshover.html

      Should work for you then. If all else fails, and in my case, I use jQuery's hoverIntent to show menus reliably.

    提交回复
    热议问题