Bootstrap tooltip with absolute position

早过忘川 提交于 2020-01-22 18:42:28

问题


I'm having strange issue when having absolutely positioned element with Bootstrap tooltip.

Tooltip is not rendered correctly according to parent element, please see fiddle: [http://jsfiddle.net/QsYPv/152/][1]

When parent element is not positioned absolutely everything is working just fine. Any ideas how to resolve this issue?

Note: I can't set CSS with of absolutely positioned element?


回答1:


this should fix it

$('a[data-toggle="tooltip"]').tooltip({
   container: 'body'
});


来源:https://stackoverflow.com/questions/31811851/bootstrap-tooltip-with-absolute-position

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