Skip to content

Instantly share code, notes, and snippets.

View realguess's full-sized avatar

Chao Huang realguess

View GitHub Profile
@realguess
realguess / aa
Created January 30, 2016 13:04
aa
aa
$(document).height()
var biggestHeight = "0";
// Loop through elements children to find & set the biggest height
$(".container *").each(function(){
// If this elements height is bigger than the biggestHeight
if ($(this).height() > biggestHeight ) {
// Set the biggestHeight to this Height
biggestHeight = $(this).height();
}
});