悬停不能使用jQuery工具 - jQuery [英] Hover not working with jQuery Tools - jQuery

查看:108
本文介绍了悬停不能使用jQuery工具 - jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网页上添加 jQuery工具时,链接上的悬停效果不会工作。

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


解决方案

如果您切换颜色插件和工具< script> 标记动画作品

http://jsfiddle.net/pxfunc/gJjAZ/

问题是:是否使工具提示不起作用? :)

When I add jQuery Tools to my page, hover effect on links doesn't work. Without it, it works.

<script src="jquery.js"></script>
<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>

解决方案

If you switch the color plugin and the tools <script> tags the animation works

http://jsfiddle.net/pxfunc/gJjAZ/

Question will be: does that make the tooltip not work? :)

这篇关于悬停不能使用jQuery工具 - jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆