2

我一直在尝试,但我根本不知道为什么我的引导工具提示不起作用。这是我的整个文件http://pastie.org/5399296这里是页面的链接http://pages.nbscraft.net/bootstrap/DonatePage.html但我就是无法让工具提示起作用。

4

1 回答 1

1

You're using $ before you include jQuery.

Move the following section

<!-- Scripts -->
<script type="text/javascript">
$(document).ready(function() {
  $('.tip').tooltip();
});
</script>

to the end of the page:

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>

<!-- Scripts -->
<script type="text/javascript">
$(document).ready(function() {
  $('.tip').tooltip();
});
</script>

btw, it's always a good practice to put all JS at the end of a page.

于 2012-11-19T03:39:17.260 回答