[英]bootstrap tooltip displays text and fades away properly, but is not located in a tooltip above the icon
I am having trouble with my tooltip, in that it displays the text to the left and fades away on mouse over, but does not properly display it in a tooltip box over the icon. 我在使用工具提示时遇到了麻烦,因为它在左侧显示了文本,并在鼠标悬停时逐渐消失,但是在图标上方的工具提示框中未正确显示。 I am using bootstrap.
我正在使用引导程序。 A part of me thinks it could be based on something like jquery ui and jquery not working well together - would be happy to add my application.js if needed.
我的一部分认为它可能基于jquery ui和jquery不能很好地协同工作之类的东西-如果需要,我很乐意添加我的application.js。 Any help would be appreciated.
任何帮助,将不胜感激。
Here is how I believe the code should look on mouseover: 我认为这是代码在鼠标悬停时应该看起来的样子:
Here is how it actually looks - additionally you can see the tooltip display "followers" to the left and not in a tooltip over the icon. 这实际上是它的外观-另外,您可以在工具提示的左侧看到“跟随者”,而不是在图标上方的工具提示中。 It changes the title to title aria-describeby "ui-tooltip-34"
它将标题更改为title aria-describeby“ ui-tooltip-34”
Here is the html for the code 这是代码的html
<li class="action-nav-button">
<a href="#" class="tip" title="New Project" >
<i class="icon-file-alt"></i>
</a>
</li>
</ul>
Here is the jquery for the tooltip 这是工具提示的jQuery
#tooltips
$('.tip, [rel=tooltip]').tooltip(gravity: 'n', fade: true, html:true)
Here is a part of the sass 这是无礼的一部分
.action-nav-normal {
.badge, .label {
position: absolute;
top: 3px;
right: 3px;
padding: 3px 5px;
display: block;
@include box-shadow(none);
}
.triangle-button {
border-top-right-radius: 3px;
pointer-events: none;
i {
right: 4px;
top: 3px;
}
}
}
Although I still need to do some more research on this I believe that this is stemming from the gem ActiveAdmin automatically including Jquery libraries. 尽管我仍然需要对此进行更多研究,但我相信这是由ActiveAdmin自动提供的,其中包括Jquery库。
I will post a further solution once resolved. 解决后,我将发布进一步的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.