我的JavaScript代码:
<script>
$(function(){
$('a[rel=tooltip]').tooltip();
});
</script>
以下是我的HTML代码:
<br><br><br>This is an example of a sentence with a
<a href="#" rel="tooltip" title="This is the tooltip!">tooltip</a>!
这并未显示Bootstrap 2.0工具提示,而是显示了一些默认的提示。