基本jQuery的效果基本show和了slideDown快把我逼疯了! [英] Basic jQuery slideUp and slideDown driving me mad!

查看:906
本文介绍了基本jQuery的效果基本show和了slideDown快把我逼疯了!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的jQuery的技能是pretty好正常,但这是推动我
疯了!

my jQuery skills are pretty good normally but this is driving me mad!

这是一个相当简单的手风琴我有codeD从头开始。运用
jQuery的1.3.2所以不应该有任何错误的跳跃,但基本上,如果
你看看这个例子:

It's a fairly simple accordian I've coded up from scratch. Using jQuery 1.3.2 so there shouldn't be any jumping bugs but basically if you take a look at the example:

<一个href=\"http://www.mizudesign.com/jquery/accordian/basic.html\">http://www.mizudesign.com/jquery/accordian/basic.html

我显示该高度为在右侧目标股利 - 如果它
包含它认为这是短于它和跳跃的文字。
如果它是一个形象没有任何问题。

I'm displaying the height for the target div on the right - if it contains text it thinks it's shorter than it is and jumping. If it's an image there's no problem.

我想不通我要去哪里错了 - 这显然在CSS
的地方,但我已经尝试了所有的秋后算账像显示:块

I can't figure out where I'm going wrong - it's obviously in the CSS somewhere but I've tried all the usual suspects like display:block

任何想法,将感激地接受!

Any ideas would be gratefully received!

你的,
克里斯

Yours, Chris

PS请原谅源$ C ​​$ C的性质,我已经撕开出来
整个项目我工作所以也包括一些该申报单
并不需要在那里。

PS Please forgive the nature of the source code, I've ripped it out the whole project I'm working on so it does include some divs that don't really need to be there.

推荐答案

您需要的内容的宽度或高度为它流畅的动画。

You need a width or height on the content for it to animate smoothly.

这篇关于基本jQuery的效果基本show和了slideDown快把我逼疯了!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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