jquery SlideDown 而不是 SlideAndPush
我有一个 div,我可以在其中单击幻灯片链接。 正如预期的那样,它实现了它所承诺的功能,但是,我更喜欢它滑开而不将其他元素推下。 就像其他层之上的一层一样。 这可能吗 ?
I have a div where I click on a link to slideDown. As expected it does what it promises however, I prefer it to slide open without pushing the other elements down as well. so like a layer on top of other layers. is this possible ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是可能的,但并不完全简单。 我之前已经在这里(视频悬停)完成过。
这个概念基本上是这样的:
position:absolute
将其定位在当前元素的正上方,并使用z-index:...
It's possible but not entirely simple. I've done it before here (the video hover-overs).
The concept basically goes:
position:absolute
andz-index:...
尝试浮动你的元素。 如果它们是 div,它们应该互相滑动。
Try floating your elements. If they are div's they should slide over one another.