I have a site with two columns. I want to have equal height on both using jQuery.
I'm trying to get the logo column height. I had:
$(document).ready(function() {
alert($('#logo').height());
});?
and it didn't work. So I changed it to:
window.onload = function(){
alert($('#logo').height());
}
And it's working. What is going on in here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…