Get the visible height of a div with jQuery
问题 I need to retrieve the visible height of a div within a scrollable area. I consider myself pretty decent with jQuery, but this is completely throwing me off. Let\'s say I\'ve got a red div within a black wrapper: In the graphic above, the jQuery function would return 248, the visible portion of the div. Once the user scrolls past the top of the div, as in the above graphic, it would report 296. Now, once the user has scrolled past the div, it would again report 248. Obviously my numbers aren\