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

后端 未结 2 1555
半阙折子戏
半阙折子戏 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:37

      From http://msdn.microsoft.com/en-us/library/ms530766.aspx

      Windows Internet Explorer 7 and later, in standards-compliant mode (strict !DOCTYPE), can apply the :hover pseudo-class to any element, not only links. If the pseudo-class is not applied specifically to an element in the selector, such as the A tag, the Universal (*) Selector is assumed. Indiscriminate use of the :hover pseudo-class can negatively impact page performance.

      See Defining Document Compatibility

    提交回复
    热议问题