工具提示有问题:我想在 div.container 上显示工具提示,我尝试编辑 z-index(div.container 中为 1,工具提示中为 9999),但没有任何效果。
jsfiddle:http://jsfiddle.net/9mss22xz/
div.tip {
background-color: #f3f3f3;
border: solid 1px #cfcfcf;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
height: 55px;
width: 55px;
float: left;
margin: 4px;
text-align: center;
position: relative;
}
div#container {
width: 200px;
height: 200px;
overflow-y: scroll;
border: 2px solid black;
margin: auto;
}
你能帮帮我吗?
最佳答案
只需添加另一个包装容器并将 position: relative
添加到主包装容器。请看我的Working fiddle here .
关于jquery - tipr 工具提示 z-index 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25770535/