jQuery SlideDown 和 Up - Firefox 问题

发布于 2024-11-06 14:01:14 字数 248 浏览 7 评论 0原文

我在使用 Firefox 时遇到问题,当使用 SlideUp 和 SlideDown 显示/隐藏时,字段集的内容会与下面的内容重叠。

字段集有一些包含表单元素的段落。当首次使用 SlideDown 显示表单时,当字段集滑入视图时,表单内容似乎覆盖了下面的内容。 SlideUp 的情况正好相反。

有谁知道为什么会出现这种情况?

编辑:在 Chrome、Safari 和 IE 中进行测试,在这些浏览器中运行良好。绝对是 FF 特有的。

I'm having an issue with Firefox and the contents of a fieldset overlapping the content beneath when shown/hidden using slideUp and slideDown.

The fieldset has some paragraphs containing form elements. When it's first shown using slideDown, the form content appears to overlay the content beneath as the fieldset slides into view. The same happens in reverse with slideUp.

Anyone know why this may be the case?

Edit: Testing in Chrome, Safari and IE, and it works fine in these browsers. Definitely FF specific.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

地狱即天堂 2024-11-13 14:01:14

我有同样的问题。这是因为在 Firefox 中,Fieldset 不受 Overflow:hidden lame 的影响...

只需应用以下内容并亲自查看:

fieldset{
height:50px
overflow: hidden;
}

解决方案...使用 div

I'm having the same issue. It's because in Firefox, Fieldset isn't affected by overflow:hidden lame...

Just apply the following and see for yourself:

fieldset{
height:50px
overflow: hidden;
}

Solution... Use a div

神魇的王 2024-11-13 14:01:14
$("selector").slideDown('slow',function(){
    //call here your slide up functionality here
})
$("selector").slideDown('slow',function(){
    //call here your slide up functionality here
})
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文