Ipad: window.height() give bad value in Safari but not in Chrome
问题 I have to get the window's height on Ipad to display something in the full height. I have done this example page: http://daviddarx.com/stuffs/work/biceps/ipad/ Here is my js code, very simple, that only write the window.height() in the body: generalResizeListener=function(){ screenW=$(window).width(); screenH=$(window).height(); $("body").html(screenH) console.log(screenH); } $(window).resize(generalResizeListener); There is two problem, on my ipad2 with IOS7: -In safari, but not in Chrome,