Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我在 jsFiddle 上的代码,当我尝试做
$('#featuredStores').fadeOut(1000)
它有效,但.fadeIn()不起作用,同样,当我使用.slideUp()它时它有效,但当我使用它时不起作用.slideDown()
.fadeIn()
.slideUp()
.slideDown()
这里有什么问题?
基本上slideDown()显示图像。考虑到您的图像在 DOM 渲染时已经显示,没有什么可以向下滑动的。如果您将样式设置为display:nonethen use slideDown(),它将起作用。
slideDown()
display:none