Does an alternative exist to the z-index bug in In

2019-09-19 05:11发布

问题:

It doesn't matter how high I set the z-index, or if I set position:relative; to the parent div, or if I set a higher z-index to parent div or any tweak I found in Google.

My tooltip will not be visible in Internet Explorer 7,

Is there any other property I could use to simulate z-index positioning?

回答1:

How is the tooltip being positioned? Try adding position:absolute; z-index:999 to your tooltip div and position:relative to the parent to see how it reacts.

It would be really helpful if you can post your page or some code.



回答2:

One alternative I tend to use is adding the dropdown menu right after <body id="homeIsoraGold" class="idioma_es">.

And then positioning it with JavaScript to be placed where you want it.

Because it is placed right after the body it will already be high in the DOM (tree) so you will have the best chance of it being on top.