0

到目前为止我有这个代码:

interestedP.animate({'max-height': (interestedP[0].scrollHeight + 60 + 'px')}, "slow");

它也可以在没有“px”的情况下工作,但 +60 永远无法解决。如何解决这个问题?

4

1 回答 1

1

尝试

interestedP.animate({'max-height': (interestedP[0].scrollHeight + 60) + 'px'}, "slow");

演示:小提琴

于 2013-03-19T07:02:30.213 回答