admin管理员组文章数量:1287829
The tooltip is showing under the element when I hover over it. The z-index of the element is 2, while the tooltip has 1030. I'm not sure what's going on. It's only for some elements too, even though they have the same markup.
Here's the page that it's happening on
It's the shapes on a page at the bottom (red, blue, yellow, etc) #rune_page_view
Any help would be appreciated.
The tooltip is showing under the element when I hover over it. The z-index of the element is 2, while the tooltip has 1030. I'm not sure what's going on. It's only for some elements too, even though they have the same markup.
Here's the page that it's happening on http://darebounty./streams/11
It's the shapes on a page at the bottom (red, blue, yellow, etc) #rune_page_view
Any help would be appreciated.
Share Improve this question edited Apr 3, 2013 at 21:16 Anujan asked Apr 3, 2013 at 20:35 AnujanAnujan 9381 gold badge9 silver badges20 bronze badges 4- 1 It would help to mention which elements this is happening with – Ian Commented Apr 3, 2013 at 20:47
- look at the answer here – anpsmn Commented Apr 3, 2013 at 21:02
- A higher z-index on an element does not necessarily guarantee it will be displayed above other elements with a lower z-index. See this explanation of the stacking context. – excentris Commented Apr 3, 2013 at 21:02
- I've added which elements it's doing it to in the OP, sorry. – Anujan Commented Apr 3, 2013 at 21:17
2 Answers
Reset to default 7I had this issue and was messing around with z-indexing in order to solve it, but it ended up being futile. I then checked out this link.
I found the "data-container='body'" attribute very useful. It was able to make my tooltips show up over everything (so that the user could actually read them), which is what I imagine most people would want.
Hope that helps anyone ing upon this in the future. :)
I had exactly the same issue.
In my case the reason was that the enclosing DIV
element had overflow: hidden
set.
I changed it to overflow: visible
and it worked.
Maybe this will help :).
本文标签: javascriptBootstrap Tooltip shows up under the elementStack Overflow
版权声明:本文标题:javascript - Bootstrap Tooltip shows up under the element - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741322875a2372308.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论