阅读背景:

使用JQuery将div设置为100%高度的问题

来源:互联网 

Hi I'm using Jquery to animate a div from a set height to 100% and back to a set height again. This is used to show/hide text from a wordpress post that is longer then the set height (overflow is hidden). I'm not able to animate the div from the set height to 100% -- instead the div jumps to 100% of the height. It does animate back to it's set size smoothly. I can't fix a height for it to animate to because the posts will always have a different height according to how much has been written.Hi I'm using Jquery to animate a div from a set




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: