这段代码在IE中淡出div。在Firefox3.0.8中,淡入淡出时间过后,div会立即消失。我找不到任何人提到这个问题。
$(function() {
$("#show").click(function() {
$("#show").fadeOut('slow');
});
});
<div id="show">this is where to show it</div>发布于 2009-04-14 17:26:36
谢谢你的帮助。
我找到问题了。我的例子并不完整。我还包括了jQuery和intellisense的jquery-vsdoc.js。把这个拿出来就行了。
我对未来的读者使用了这个技巧
<%if (false) { %>
<script src="common/jquery-vsdoc.js" type="text/javascript"></script>
<% } %>很奇怪。
发布于 2009-04-14 16:14:04
我可以在Firefox 3.0.8和Windows XP上使用它。
Here is the sample page I tested it on.
发布于 2009-04-14 16:27:16
也为我工作
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript">
</script>
<script type="text/javascript">
$(function() {
$("#show").click(function() {
$("#show").fadeOut('slow');
});
});
</script>
<div id="show">this is where to show it</div>https://stackoverflow.com/questions/748113
复制相似问题