悬停不使用 jQuery 工具 - jQuery [英] Hover not working with jQuery Tools - jQuery
本文介绍了悬停不使用 jQuery 工具 - jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将 jQuery 工具 添加到我的页面时,链接上的悬停效果不会工作.没有它,它可以工作.
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>
推荐答案
如果你切换颜色插件和工具 <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屋!
查看全文