Jquery滑动面板
我只设置了一些基本面板,我试图将它们水平滑入和滑出。我试图在页面加载时隐藏除第一个面板之外的所有内容,然后当单击其他面板的链接时,当前显示的内容将向左滑动以隐藏,然后新内容将滑入页面的中心,等等。目前,我所拥有的盒子的位置不适合我。
可以在此处查看演示:
谢谢!
I have set up just some basic panels that I'm trying to slide in and out horizontally. What I'm trying to do hide all of the content except the first panel when the page loads, and then when a link to the other panels is clicked the currently displayed content will slide left to be hidden and then the new content will slide into the center of the page, and so on. At the moment, the positioning of the boxes I have aren't cooperating with me.
Demo can be checked out here:
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您真的需要将元素定位在左侧吗?因为如果您可以简单地隐藏它们,那么实现您的效果的代码非常简单:
我也将此版本放入您的小提琴中: http://jsfiddle.net/fE8ks/1/
Do you really need to position elements with margin to the left? Because if it works for you to simply hide them, the code which does your effect is pretty simple:
I've also put this version to your Fiddle: http://jsfiddle.net/fE8ks/1/
在 Firefox 中一切似乎都工作正常,唯一缺少的是 z-index 属性应用于 .current 类,它将把选定的幻灯片列设置在顶部。如果存在其他问题,您能否显示屏幕截图或告诉我们您看到该问题的浏览器版本,以便我们复制?
Everything seems to be working fine in Firefox, the only thing you are missing is the z-index attribute applies to the .current class which will set the selected slide column on top. If there is an issue other then that can you show a screen shot or tell us what browser version you see the issue so we can duplicate?