2013-11-14 85 views

回答

3

您需要的元素的可见height()比作scrollHeight,像这样:

if ($('#foo').height() < $('#foo')[0].scrollHeight) { 
    alert('scrollable'); 
} 

Example fiddle

+0

谢谢,非常感谢。按我想要的方式工作。 –

+0

没问题,很高兴帮助 –

+0

谢谢,[在测试中使用这个技巧](http://stackoverflow.com/a/29052650/771848),工作完美。 – alecxe