I'm trying to get the current browser viewport height, using
$(window).on('resize',function() {
console.log("new height is: "+$(window).height());
});
But I'm getting values that are way too low. When the viewport is around 850px tall, I'm getting values around 350 or 400px from height(). What's up?
Example: http://jsfiddle.net/forgetcolor/SVqx9/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…