Does an alternative exist to the z-index bug in Internet Explorer 7?

萝らか妹 提交于 2019-12-12 02:47:45

问题


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.



来源:https://stackoverflow.com/questions/7390587/does-an-alternative-exist-to-the-z-index-bug-in-internet-explorer-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!