0

这可能是一个非常简单的解决方案。但是,我是 jquery 和 qtip 的新手。对于我的生活,我无法让我的 qtip 出现。显示的只是默认工具提示。有谁知道可能是什么问题?

<html>
<head>
<link type="text/css" rel="stylesheet" href="/jquery.qtip.min.css"/>
   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

<script type='text/javascript' src="/jquery.qtip.min.js"></script>

<script>
$('a[title]').qtip()
</script>

</head>
<body>
<a title="why wont this tooltip work" href ="#">Hello there punk
</body>
</html>

这是一个不起作用的简单示例,有什么建议吗?

4

1 回答 1

3

阅读文档我认为这是这样做的方法,只有在文档准备好后才应该调用它

$(document).ready(function() 
{
    $('body a[href]').qtip();
});
于 2013-03-06T03:01:50.777 回答