我在 display:none 中有一个 div,如下所示:
<div id="mydiv" style="display:none">My Text</div>
我希望我的 div 出现,所以我使用了:
$("#mydiv").fadeIn();
但它不起作用...我的 div 停留在 display:none...
谢谢你的帮助。
现在可以使用...只是引用错误...不要怪我 :) 感谢您的帮助
Does it work if you remove the inline "display: none" and use fadeOut() to hide the element first? Also, does anything of note get logged in the JS console?
隐藏jQuery中的元素
$('#mydiv').hide();
比淡入淡出,它应该可以工作(也应该与 display:none 一起工作)
否则给我看一些代码-> http://jsfiddle.net/genesis/7NdPJ/