jquery淡化效果在FF中不起作用 [英] jquery fade effect not working in FF
本文介绍了jquery淡化效果在FF中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这段代码在IE中淡化了div。在Firefox 3.0.8中,淡入淡出时间过去,div立即消失。我找不到任何人提到这个问题。
This piece of code fades the div fine in IE. In Firefox 3.0.8, the fade time goes by and the div disappears instantly. I can't find anyone mentioning this problem.
$(function() {
$("#show").click(function() {
$("#show").fadeOut('slow');
});
});
<div id="show">this is where to show it</div>
推荐答案
感谢您的帮助。
我发现了问题。我的例子不完整。我还为jQuery VS intellisense包含了 jquery-vsdoc.js
。解决这个问题让它发挥作用。
I found the problem. My example wasn't complete. I had also included jquery-vsdoc.js
for jQuery VS intellisense. Taking this out made it work.
我将这个技巧用于未来的读者
I used this trick for future readers
<%if (false) { %>
<script src="common/jquery-vsdoc.js" type="text/javascript"></script>
<% } %>
Wierd。
这篇关于jquery淡化效果在FF中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文