admin 管理员组

文章数量: 1086019

Please take a look at this jsfiddle

I gave position absolute to a question-sign icon with top:0; right: -42px; therefore the element that shows tooltip is outside of row. I think this has caused tooltip to not get proper width or misplace the tooltip content and tooltip content trapped within row-fluid. as you can see arrow position is fine.

update: I'd place ? icon next to textarea and textarea fill its parent width and aligned right. here is another example

Please take a look at this jsfiddle

I gave position absolute to a question-sign icon with top:0; right: -42px; therefore the element that shows tooltip is outside of row. I think this has caused tooltip to not get proper width or misplace the tooltip content and tooltip content trapped within row-fluid. as you can see arrow position is fine.

update: I'd place ? icon next to textarea and textarea fill its parent width and aligned right. here is another example

Share Improve this question edited Jun 27, 2013 at 6:41 Pavlo 45k14 gold badges83 silver badges114 bronze badges asked Jun 25, 2013 at 5:47 mhesabimhesabi 1,1403 gold badges23 silver badges52 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 12

Specify body as a container for a tooltip (demo):

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

本文标签: javascripttwitter bootstrap tooltip is misplacedStack Overflow