jQuery:使用slideUp()/ slideDown()时IE8边距崩溃 [英] jQuery: IE8 margin collapses when using slideUp()/slideDown()

查看:182
本文介绍了jQuery:使用slideUp()/ slideDown()时IE8边距崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里上传了一个测试文件:

I've uploaded a test file here:

http://dl.dropbox.com/u/2201804/IE8test.html

如果点击点击我divs,你会看到使用slideDown()显示反馈div。单击另一个框中的单击我可以滑动当前显示的反馈并向下滑动相应的反馈。

If you click on the "Click me" divs, you'll see the "Feedback" divs appear using slideDown(). Clicking a "Click me" in another box slides the currently showing feedback up and slides down the appropriate feedback.

在IE8中,在slideUp()/ slideDown()操作之后完成后,框之间的边距会崩溃。

In IE8, after the slideUp()/slideDown() actions are complete, the margin between the boxes collapses.

这是jQuery动画的问题还是IE8中的显示错误?

Is this a problem with jQuery's animation or a display bug in IE8?

推荐答案


溢出:隐藏;

overflow: hidden;

应该做什么工作:))

这篇关于jQuery:使用slideUp()/ slideDown()时IE8边距崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆