Jquery 悬停不工作

Jquery 悬停不工作,jquery,hover,Jquery,Hover,当我添加到我的页面时,链接上的悬停效果不起作用。没有它,它就可以工作 <script src="jquery.color.js"></script> <script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script> <script> $(function() { $("a").hover( function() { $(this).anima

当我添加到我的页面时,链接上的悬停效果不起作用。没有它,它就可以工作

<script src="jquery.color.js"></script>
<script src="http://cdn.jquerytools.org/1.2.5/jquery.tools.min.js"></script>
<script>
$(function() {
$("a").hover(
function() {
    $(this).animate({color: "white"}, 400);
}, function() {
    $(this).animate({color: "black"}, 400);
})
})
</script>

$(函数(){
$(“a”)。悬停(
函数(){
动画({color:“white”},400);
},函数(){
动画({color:“black”},400);
})
})
拿些分号

$(function() {
$("a").hover(
function() {
    $(this).animate({color: "white"}, 400);
}, function() {
    $(this).animate({color: "black"}, 400);
});
});

将“cancelDefault”属性设置为false

这是完整的来源吗?确保包含jQuery本身。如何使用它?编辑主文件?创建工具提示时设置首选项:
$(“.trigger”).tooltip({cancelDefault:true})