z-index between Children and Parents

后端 未结 7 974
我在风中等你
我在风中等你 2020-12-10 18:08

I\'m having problems working out the z-index order for an application we\'re working on, i have two root parents, a nav bar and a map, and one child, the map tooltip. The na

相关标签:
7条回答
  • 2020-12-10 18:43

    If, in the real page, the tooltip has to be shown only on hovering the map container, you could just change dynamically its z-index like so:

    #map-container:hover
    {
        z-index: 16
    }
    

    Otherwise you need to change the position of the tooltip so that the nav-bar doesn't overlap it.

    0 讨论(0)
提交回复
热议问题