I think this may be due to the fact that it is inside the element <tr>. This affects positioning due to styles on <tr>, which force it into an unexpected position.
quick fix or maybe just check if this can add a tooltip in <span>inside<td>
$(function () {
$('.table1 td').tooltip({title:"test",placement:"bottom"});
$('.table2 td span').tooltip({title:"test",placement:"bottom"});
});
.container{
margin-top:20px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<div class="container">
<div class="row">
<table class="table table-bordered table1">
<tr>
<td>
standard td - tooltip inside of tr tag
</td>
</tr>
</table>
</div>
</div>
<div class="container">
<div class="row">
<table class="table table-bordered table2">
<tr>
<td>
<span>
tooltip item wrapped in span tag
</span>
</td>
</tr>
</table>
</div>
</div>
Run codeHide resultuser1752532
source
share