Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
到目前为止我有这个代码:
interestedP.animate({'max-height': (interestedP[0].scrollHeight + 60 + 'px')}, "slow");
它也可以在没有“px”的情况下工作,但 +60 永远无法解决。如何解决这个问题?
尝试
interestedP.animate({'max-height': (interestedP[0].scrollHeight + 60) + 'px'}, "slow");
演示:小提琴