使用jQuery slideUp消失的元素 [英] Vanishing element using jQuery slideUp
问题描述
我正在解决一个问题,该问题导致单个元素在第二次切换后消失.
I'm working through an issue that is causing a single element to vanish after the 2nd toggle of an element.
最初运行时,每个部分都有3个可见的按钮.若要重现,请单击未展开的部分,再单击另一部分,然后单击回到开始的原始部分. 在线表单"按钮消失了.
When it initially runs, there are 3 buttons visible for each section. To reproduce click on the section that is not expanded, click on the other, and then click back to the original section you started with. The "Online Form" button vanishes.
罪魁祸首是这条线,但我还没有弄清楚是什么原因造成的.
The culprit is this line, but I have not figured out what is causing this.
$('.FormsHeader a').removeClass('current').nextAll().slideUp(430);
这里是我正在使用的小提琴当前版本的链接: http://jsfiddle.net/ddub/4SZGc/2/
Here is a link to the current version of the fiddle I'm using: http://jsfiddle.net/ddub/4SZGc/2/
谢谢!
推荐答案
基于SlideUp()
如果在无序列表()及其
上调用.slideDown() 元素具有位置(相对,绝对或固定),效果可能 至少通过IE9无法在IE6中正常工作,除非 布局."要解决该问题,请添加以下位置:relative;并缩放: 1; ul的CSS声明.
If .slideDown() is called on an unordered list () and its
elements have position (relative, absolute, or fixed), the effect may not work properly in IE6 through at least IE9 unless the has "layout." To remedy the problem, add the position: relative; and zoom: 1; CSS declarations to the ul.
即使TAG不是ul
也不是slideUp()
,请尝试设置css属性:zoom:1
和position: relative
even the TAG is not ul
and not for slideUp()
, try to set css property: zoom:1
and position: relative
希望有帮助
这篇关于使用jQuery slideUp消失的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!