我可以使用 jquery 将图像向上滑动以显示更多内容吗
My client wants something like the "Become a Member" area at the bottom of http://www.sdchamber.org/. (Actually she wants exactly the same thing, but I have no flash experience at all) I am a novice at jquery, but it seems like it should be able to do something like this. Can anyone help me out? Have an image slide up to reveal content under?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在要悬停的内容下方放置一个
并使用
animate()
来增加0px
的高度500px
或hover()
上的其他内容,然后您可以对其进行动画处理,以在blur()
上将高度降低回0px
代码>.您需要有一个更大的 div,其中包含隐藏和非隐藏的 div,并将
focus()
和blur()
添加到这个更大的 div 中。You can have a
<div>
below the thing you want to hover over andanimate()
it to increase the height from0px
to say500px
or something onhover()
and then you can animate it to decrease the height back to0px
onblur()
.And you need to have a bigger div which contains both the hidden and non-hidden div's and add the
focus()
andblur()
to this bigger div.这不是发布此内容的地方。 StackOverflow 用于回答特定问题。请查看这个论坛,他们可以帮助您编写整个代码:
http://www. codingforums.com/forumdisplay.php?f=47
This is not a place to post this. StackOverflow is for answering specific questions. Please check out this forum where they can help you code the whole thing:
http://www.codingforums.com/forumdisplay.php?f=47