增加工具提示的z-index参数

时间:2014-12-04 16:02:10

标签: jquery css jquery-ui

我正在使用jquery工具提示,我想增加其z-index 我试过这个,但它不起作用

<style>
.tooltip {
    z-index: 100;
}

3 个答案:

答案 0 :(得分:2)

您要样式的课程是.ui-tooltip,而不是.tooltip

<style type="text/css">
.ui-tooltip {
    z-index: 10000;
}
</style>

答案 1 :(得分:0)

默认工具提示的ui-tooltip类不是tooltip

答案 2 :(得分:0)

我也面临着同样的问题。实际上,jQuery动态地添加一个元素并使它可见。因此父元素必须具有overflow的{​​{1}}属性。在我的情况下,工具提示位于visible标记中。我添加了以下html

<th>
相关问题